You are here

function rules_events_global_user_argument in Rules 6

Returns the argument definition for the acting user (global $user)

Related topics

6 calls to rules_events_global_user_argument()
rules_events_hook_comment_arguments in rules/modules/comment.rules.inc
Returns some arguments suitable for hook comment
rules_events_hook_taxonomy_term_arguments in rules/modules/taxonomy.rules.inc
Returns some arguments suitable for using it with a term
rules_events_hook_user_arguments in rules/modules/user.rules.inc
Returns some arguments suitable for hook_user
rules_events_node_arguments in rules/modules/node.rules.inc
Returns some arguments suitable for using it with a node
rules_forms_events_arguments in rules_forms/rules_forms.rules.inc
Returns some arguments suitable for hook form alter.

... See full list

File

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

Code

function rules_events_global_user_argument() {
  return array(
    'user' => array(
      'type' => 'user',
      'label' => t('acting user'),
      'handler' => 'rules_events_argument_global_user',
    ),
  );
}