function content_type_create in Content Construction Kit (CCK) 6.2
Same name and namespace in other branches
- 5 content_crud.inc \content_type_create()
- 6.3 includes/content.crud.inc \content_type_create()
- 6 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 due to a static caching bug. We ask it to rebuild its cache so that content_clear_type_cache() can do its job properly.
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 622 - Create/Read/Update/Delete functions for CCK-defined object types.
Code
function content_type_create($info) {
node_get_types(NULL, NULL, TRUE);
content_clear_type_cache(TRUE);
}