node_node_type
modules/node/content_types.inc, строка 344
- Версии
- 5 – 6
node_node_type($op, $info)
Implementation of hook_node_type()
.
Код
<?php
function node_node_type($op, $info) {
if ($op != 'delete' && !empty($info->old_type) && $info->old_type != $info->type) {
$update_count = node_type_update_nodes($info->old_type, $info->type);
if ($update_count) {
drupal_set_message(format_plural($update_count, 'Changed the content type of 1 post from %old-type to %type.', 'Changed the content type of @count posts from %old-type to %type.', array('%old-type' => $info->old_type, '%type' => $info->type)));
}
}
}
?>
Войдите или зарегистрируйтесь, чтобы получить возможность отправлять комментарии