function hook_node_type_insert
hook_node_type_insert($info)
Respond to node type creation.
This hook is invoked from node_type_save() after the node type is added to the database.
Parameters
$info: The node type object that is being created.
Related topics
File
- modules/node/node.api.php, line 1003
- Hooks provided by the Node module.
Code
function hook_node_type_insert($info) { drupal_set_message(t('You have just created a content type with a machine name %type.', array('%type' => $info->type))); }
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/modules!node!node.api.php/function/hook_node_type_insert/7.x