function content_type_create in Content Construction Kit (CCK) 6
Same name and namespace in other branches
- 5 content_crud.inc \content_type_create()
- 6.3 includes/content.crud.inc \content_type_create()
- 6.2 includes/content.crud.inc \content_type_create()
Make changes needed when a content type is created.
Parameters
$info: value supplied by hook_node_type()
node_get_types() is still missing the new type at this point, so no use to call content_clear_type_cache() or menu_rebuild() here. Instead we set a flag to make sure it gets rebuilt on next page load.
1 call to content_type_create()
- content_node_type in ./
content.module - Implementation of hook_node_type() React to change in node types
File
- includes/
content.crud.inc, line 539 - Create/Read/Update/Delete functions for CCK-defined object types.
Code
function content_type_create($info) {
content_menu_needs_rebuild(TRUE);
}