You are here

function user_stats_events_argument_user in User Stats 7

Same name and namespace in other branches
  1. 6 user_stats.rules.inc \user_stats_events_argument_user()

Handler to load user object on event.

Parameters

$uid: Unique user ID used to load the user object.

$value: Value of the statistic, not relevant to loading the user object, but passed through by Rules engine.

Return value

Loaded user object.

1 string reference to 'user_stats_events_argument_user'
user_stats_rules_events_variables in ./user_stats.rules.inc
Defines variables for user_stats_rules_event_info().

File

./user_stats.rules.inc, line 100
Functions for integrating the Rules module with User Stats.

Code

function user_stats_events_argument_user($uid, $value) {
  return user_load($uid);
}