From 3b3050959952ceae617b59246f364f4b0edd2dcd Mon Sep 17 00:00:00 2001 From: Angie Byron Date: Sat, 14 Mar 2009 23:01:38 +0000 Subject: #347250 by catch, drewish, and Berdir: Add function for loading multiple users in one request. --- modules/trigger/trigger.module | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'modules/trigger') diff --git a/modules/trigger/trigger.module b/modules/trigger/trigger.module index 6df47e686..aeb5bb0fd 100644 --- a/modules/trigger/trigger.module +++ b/modules/trigger/trigger.module @@ -195,7 +195,7 @@ function _trigger_normalize_node_context($type, $node) { // An action that works on users is being called in a node context. // Load the user object of the node's author. case 'user': - return user_load(array('uid' => $node->uid)); + return user_load($node->uid); } } @@ -298,7 +298,7 @@ function _trigger_normalize_comment_context($type, $comment) { // An action that works on users is being called in a comment context. case 'user': - return user_load(array('uid' => is_array($comment) ? $comment['uid'] : $comment->uid)); + return user_load(is_array($comment) ? $comment['uid'] : $comment->uid); } } -- cgit v1.2.3