function taxonomy_node_type
6.x taxonomy.module | taxonomy_node_type($op, $info) |
Implementation of hook_node_type().
File
- drupal-6.x/
modules/ taxonomy/ taxonomy.module, line 750 - Enables the organization of content into categories.
Code
function taxonomy_node_type($op, $info) {
if ($op == 'update' && !empty($info->old_type) && $info->type != $info->old_type) {
db_query("UPDATE {vocabulary_node_types} SET type = '%s' WHERE type = '%s'", $info->type, $info->old_type);
}
elseif ($op == 'delete') {
db_query("DELETE FROM {vocabulary_node_types} WHERE type = '%s'", $info->type);
}
}