You are here

function serial_node_type in Serial Field 6

Implementation of hook_node_type()

File

./serial.module, line 119
The Serial module main file.

Code

function serial_node_type($op, $info) {
  switch ($op) {
    case 'update':

      // Handle content type rename:
      if (isset($info->old_type) && $info->old_type != $info->type) {
        module_load_include('inc', 'serial');
        _serial_rename_tables($info->old_type, $info->type);
      }
      break;
  }
}