From eb9aefe8b599feb896339b13ba19e5faf3906b23 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Thu, 18 Dec 2008 23:07:50 +0000 Subject: - Patch #344361 by Rob Loach, recidive: remove some cruft left from the de-op nodeapi patch. --- modules/trigger/trigger.module | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'modules/trigger') diff --git a/modules/trigger/trigger.module b/modules/trigger/trigger.module index 86afb1c19..0eb4b50fe 100644 --- a/modules/trigger/trigger.module +++ b/modules/trigger/trigger.module @@ -209,8 +209,7 @@ function _trigger_nodeapi($node, $op, $a3 = NULL, $a4 = NULL) { static $objects; // Prevent recursion by tracking which operations have already been called. static $recursion; - // Support a subset of operations. - if (!in_array($op, array('view', 'update', 'presave', 'insert', 'delete')) || isset($recursion[$op])) { + if (isset($recursion[$op])) { return; } $recursion[$op] = TRUE; @@ -433,10 +432,6 @@ function trigger_user_view(&$edit, &$account, $category) { function _trigger_user($op, &$edit, &$account, $category = NULL) { // Keep objects for reuse so that changes actions make to objects can persist. static $objects; - // We support a subset of operations. - if (!in_array($op, array('login', 'logout', 'insert', 'update', 'delete', 'view'))) { - return; - } $aids = _trigger_get_hook_aids('user', $op); $context = array( 'hook' => 'user', -- cgit v1.2.3