diff options
author | Angie Byron <webchick@24967.no-reply.drupal.org> | 2009-03-08 04:25:07 +0000 |
---|---|---|
committer | Angie Byron <webchick@24967.no-reply.drupal.org> | 2009-03-08 04:25:07 +0000 |
commit | ddc2604d694892f6576a5cfa970a4bcfda6ec270 (patch) | |
tree | 19ea28561e1c99c287f4a040adf98740903cb2da /modules/system | |
parent | ad84a92662cea2c8ad2e1d29ccdc7234627d4a51 (diff) | |
download | brdo-ddc2604d694892f6576a5cfa970a4bcfda6ec270.tar.gz brdo-ddc2604d694892f6576a5cfa970a4bcfda6ec270.tar.bz2 |
#383066 by David Strauss: Rename hook_nodeapi_X to hook_node_X.
Diffstat (limited to 'modules/system')
-rw-r--r-- | modules/system/system.module | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/modules/system/system.module b/modules/system/system.module index ef9bd565f..5fd207758 100644 --- a/modules/system/system.module +++ b/modules/system/system.module @@ -1598,7 +1598,7 @@ function system_action_info() { 'description' => t('Display a message to the user'), 'configurable' => TRUE, 'hooks' => array( - 'nodeapi' => array('view', 'insert', 'update', 'delete'), + 'node' => array('view', 'insert', 'update', 'delete'), 'comment' => array('view', 'insert', 'update', 'delete'), 'user' => array('view', 'insert', 'update', 'delete', 'login'), 'taxonomy' => array('insert', 'update', 'delete'), @@ -1609,7 +1609,7 @@ function system_action_info() { 'type' => 'system', 'configurable' => TRUE, 'hooks' => array( - 'nodeapi' => array('view', 'insert', 'update', 'delete'), + 'node' => array('view', 'insert', 'update', 'delete'), 'comment' => array('view', 'insert', 'update', 'delete'), 'user' => array('view', 'insert', 'update', 'delete', 'login'), 'taxonomy' => array('insert', 'update', 'delete'), @@ -1626,7 +1626,7 @@ function system_action_info() { 'type' => 'system', 'configurable' => TRUE, 'hooks' => array( - 'nodeapi' => array('view', 'insert', 'update', 'delete'), + 'node' => array('view', 'insert', 'update', 'delete'), 'comment' => array('view', 'insert', 'update', 'delete'), 'user' => array('view', 'insert', 'update', 'delete', 'login'), ) @@ -1979,7 +1979,7 @@ function system_send_email_action($object, $context) { global $user; switch ($context['hook']) { - case 'nodeapi': + case 'node': // Because this is not an action of type 'node' the node // will not be passed as $object, but it will still be available // in $context. @@ -2109,7 +2109,7 @@ function system_message_action(&$object, $context = array()) { // are used a node object must be present to be the source // of substituted text. switch ($context['hook']) { - case 'nodeapi': + case 'node': // Because this is not an action of type 'node' the node // will not be passed as $object, but it will still be available // in $context. |