summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorAngie Byron <webchick@24967.no-reply.drupal.org>2009-11-05 16:19:25 +0000
committerAngie Byron <webchick@24967.no-reply.drupal.org>2009-11-05 16:19:25 +0000
commitd9017f58782dda2705b520c3724372a6c5b99bbe (patch)
tree4efcf975e018ada2c102654d1c19e792b07304e9 /modules
parent099d72a917b46431eab4f6f0703d63acf6f39be5 (diff)
downloadbrdo-d9017f58782dda2705b520c3724372a6c5b99bbe.tar.gz
brdo-d9017f58782dda2705b520c3724372a6c5b99bbe.tar.bz2
#591794 follow-up by effulgentsia: Reduce performance overhead of drupal_alter().
Diffstat (limited to 'modules')
-rw-r--r--modules/node/node.test3
1 files changed, 2 insertions, 1 deletions
diff --git a/modules/node/node.test b/modules/node/node.test
index a2a8e4420..1e8ea8532 100644
--- a/modules/node/node.test
+++ b/modules/node/node.test
@@ -758,7 +758,8 @@ class NodeAccessRecordsUnitTest extends DrupalWebTestCase {
$web_user = $this->drupalCreateUser(array('access content'));
foreach ($operations as $op) {
$grants = node_test_node_grants($op, $web_user);
- $altered_grants = drupal_alter($grants, $web_user, $op);
+ $altered_grants = $grants;
+ drupal_alter('node_grants', $altered_grants, $web_user, $op);
$this->assertNotEqual($grants, $altered_grants, t('Altered the %op grant for a user.', array('%op' => $op)));
}
}