You are here

function flag_node_type in Flag 6

Same name and namespace in other branches
  1. 5 flag.module \flag_node_type()
  2. 6.2 flag.module \flag_node_type()

Implementation of hook_node_type().

File

./flag.module, line 431

Code

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

      // Remove entry from flaggable content types.
      db_query("DELETE FROM {flag_types} WHERE type = '%s'", $info->type);
      break;
  }
}