You are here

function rabbit_hole_node_type in Rabbit Hole 6

Implements hook_node_type().

File

./rabbit_hole.module, line 268
Main module file for Rabbit Hole.

Code

function rabbit_hole_node_type($op, $info) {
  switch ($op) {
    case 'delete':

      // Delete variables connected to this content type.
      variable_del('rabbit_hole_action_' . $info->type);
      variable_del('rabbit_hole_redirect_' . $info->type);
      variable_del('rabbit_hole_redirect_response_' . $info->type);
      break;
  }
}