diff options
author | Angie Byron <webchick@24967.no-reply.drupal.org> | 2009-08-11 15:50:56 +0000 |
---|---|---|
committer | Angie Byron <webchick@24967.no-reply.drupal.org> | 2009-08-11 15:50:56 +0000 |
commit | 84afe0d9275834a716edd826e8224e40cafa3746 (patch) | |
tree | 120beeede2cb7ad5d220927ba1aae56e44a98ad7 /modules/node/node.module | |
parent | 9c0e6e92426a061f78e6dfe685c7c37c7f72bc62 (diff) | |
download | brdo-84afe0d9275834a716edd826e8224e40cafa3746.tar.gz brdo-84afe0d9275834a716edd826e8224e40cafa3746.tar.bz2 |
#545306 by alexanderpas: De-op hook_node_type().
Diffstat (limited to 'modules/node/node.module')
-rw-r--r-- | modules/node/node.module | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/modules/node/node.module b/modules/node/node.module index b66b423f0..40023b9af 100644 --- a/modules/node/node.module +++ b/modules/node/node.module @@ -431,7 +431,7 @@ function node_type_save($info) { field_attach_rename_bundle($type->old_type, $type->type); } node_configure_fields($type); - module_invoke_all('node_type', 'update', $type); + module_invoke_all('node_type_update', $type); return SAVED_UPDATED; } else { @@ -442,7 +442,7 @@ function node_type_save($info) { field_attach_create_bundle($type->type); node_configure_fields($type); - module_invoke_all('node_type', 'insert', $type); + module_invoke_all('node_type_insert', $type); return SAVED_NEW; } } @@ -517,7 +517,7 @@ function node_type_delete($type) { db_delete('node_type') ->condition('type', $type) ->execute(); - module_invoke_all('node_type', 'delete', $info); + module_invoke_all('node_type_delete', $info); } /** @@ -2614,7 +2614,7 @@ function node_access_needs_rebuild($rebuild = NULL) { * large number of nodes). * hook_update_N and any form submit handler are safe contexts to use the * 'batch mode'. Less decidable cases (such as calls from hook_user, - * hook_taxonomy, hook_node_type...) might consider using the non-batch mode. + * hook_taxonomy, etc...) might consider using the non-batch mode. */ function node_access_rebuild($batch_mode = FALSE) { db_delete('node_access')->execute(); |