You are here

function content_node_type in Content Construction Kit (CCK) 6.3

Same name and namespace in other branches
  1. 5 content.module \content_node_type()
  2. 6 content.module \content_node_type()
  3. 6.2 content.module \content_node_type()

Implementation of hook_node_type() React to change in node types

File

./content.module, line 1594
Allows administrators to associate custom fields to content types.

Code

function content_node_type($op, $info) {
  switch ($op) {
    case 'insert':
      module_load_include('inc', 'content', 'includes/content.crud');
      content_type_create($info);
      break;
    case 'update':
      module_load_include('inc', 'content', 'includes/content.crud');
      content_type_update($info);
      break;
    case 'delete':
      module_load_include('inc', 'content', 'includes/content.crud');
      content_type_delete($info);
      break;
  }
}