function taxonomy_node_type in Drupal 5
Same name and namespace in other branches
- 6 modules/taxonomy/taxonomy.module \taxonomy_node_type()
Implementation of hook_node_type().
File
- modules/
taxonomy/ taxonomy.module, line 891 - 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);
}
}