You are here

function rules_events_argument_global_user in Rules 6

Gets the user account of the "acting" user - which is always the global user

Related topics

1 string reference to 'rules_events_argument_global_user'
rules_events_global_user_argument in rules/modules/user.rules.inc
Returns the argument definition for the acting user (global $user)

File

rules/modules/user.rules.inc, line 75
rules integration for the user module

Code

function rules_events_argument_global_user() {
  global $user;
  return user_load(array(
    'uid' => $user->uid,
  ));
}