function ajax_example_node_insert
Implements hook_node_insert().
See also
ajax_example_form_node_form_alter()
1 call to ajax_example_node_insert()
- ajax_example_node_update in ajax_example/
ajax_example_node_form_alter.inc - Implements hook_node_update().
File
-
ajax_example/
ajax_example_node_form_alter.inc, line 109
Code
function ajax_example_node_insert($node) {
if (isset($node->ajax_example)) {
db_insert('ajax_example_node_form_alter')->fields(array(
'nid' => $node->nid,
'example_1' => $node->ajax_example['example_1'],
'example_2' => $node->ajax_example['example_2'],
))
->execute();
}
}