function defaultcontent_node_insert in Default Content 7
Same name and namespace in other branches
- 7.2 defaultcontent.module \defaultcontent_node_insert()
Implements hook_node_insert().
Record machine name
1 call to defaultcontent_node_insert()
- defaultcontent_node_update in ./
defaultcontent.module - Implements hook_node_update().
File
- ./
defaultcontent.module, line 37 - Module file for the Default content module which allow export and import of default content in a Drupal site.
Code
function defaultcontent_node_insert($node) {
if (isset($node->machine_name)) {
defaultcontent_set_default($node->machine_name, $node->nid);
}
}