You are here

function rules_events_hook_comment_arguments in Rules 6

Returns some arguments suitable for hook comment

Related topics

1 call to rules_events_hook_comment_arguments()
comment_rules_event_info in rules/modules/comment.rules.inc
Implementation of hook_rules_event_info()

File

rules/modules/comment.rules.inc, line 52
rules integration for the comment module

Code

function rules_events_hook_comment_arguments($comment_label) {
  return array(
    'comment' => array(
      'type' => 'comment',
      'label' => $comment_label,
    ),
    'comment_author' => array(
      'type' => 'user',
      'label' => $comment_label . ' ' . t('author'),
      'handler' => 'rules_events_argument_comment_author',
    ),
    'node' => array(
      'type' => 'node',
      'label' => t('commented content'),
      'handler' => 'rules_events_argument_comment_node',
    ),
    'node_author' => array(
      'type' => 'user',
      'label' => t('commented content author'),
      'handler' => 'rules_events_argument_comment_node_author',
    ),
  ) + rules_events_global_user_argument();
}