summaryrefslogtreecommitdiff
path: root/modules/node/node.module
diff options
context:
space:
mode:
authorAngie Byron <webchick@24967.no-reply.drupal.org>2009-08-11 15:50:56 +0000
committerAngie Byron <webchick@24967.no-reply.drupal.org>2009-08-11 15:50:56 +0000
commit84afe0d9275834a716edd826e8224e40cafa3746 (patch)
tree120beeede2cb7ad5d220927ba1aae56e44a98ad7 /modules/node/node.module
parent9c0e6e92426a061f78e6dfe685c7c37c7f72bc62 (diff)
downloadbrdo-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.module8
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();