You are here

function flag_comment::rules_get_event_arguments_definition in Flag 6

Same name and namespace in other branches
  1. 5 flag.inc \flag_comment::rules_get_event_arguments_definition()
  2. 6.2 flag.inc \flag_comment::rules_get_event_arguments_definition()

File

./flag.inc, line 1055
Implements various flags. Uses object oriented style inspired by that of Views 2.

Class

flag_comment
Implements a comment flag.

Code

function rules_get_event_arguments_definition() {
  return array(
    'comment' => array(
      'type' => 'comment',
      'label' => t('flagged comment'),
      'handler' => 'flag_rules_get_event_argument',
    ),
    'comment_author' => array(
      'type' => 'user',
      'label' => t('flagged comment author'),
      'handler' => 'flag_rules_get_comment_author',
    ),
    'node' => array(
      'type' => 'node',
      'label' => t("the flagged comment's content"),
      'handler' => 'flag_rules_get_comment_content',
    ),
    'node_author' => array(
      'type' => 'user',
      'label' => t('commented content author'),
      'handler' => 'flag_rules_get_comment_node_author',
    ),
  );
}