function user_stats_events_argument_user in User Stats 6
Same name and namespace in other branches
- 7 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_arguments in ./
user_stats.rules.inc - Defines arguments for user_stats_rules_event_info().
File
- ./
user_stats.rules.inc, line 103 - Functions for integrating the Rules module with User Stats.
Code
function user_stats_events_argument_user($uid, $value) {
return user_load(array(
'uid' => $uid,
));
}