function content_node_type in Content Construction Kit (CCK) 5
Same name and namespace in other branches
- 6.3 content.module \content_node_type()
- 6 content.module \content_node_type()
- 6.2 content.module \content_node_type()
Implementation of hook_node_type() React to change in node types
File
- ./
content.module, line 860 - Allows administrators to associate custom fields to content types.
Code
function content_node_type($op, $info) {
switch ($op) {
case 'insert':
include_once './' . drupal_get_path('module', 'content') . '/content_crud.inc';
content_type_create($info);
break;
case 'update':
include_once './' . drupal_get_path('module', 'content') . '/content_crud.inc';
content_type_update($info);
break;
case 'delete':
include_once './' . drupal_get_path('module', 'content') . '/content_crud.inc';
content_type_delete($info);
break;
}
}