You are here

function flag_node::rules_get_event_arguments_definition in Flag 6.2

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

File

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

Class

flag_node
Implements a node flag.

Code

function rules_get_event_arguments_definition() {
  return array(
    'node' => array(
      'type' => 'node',
      'label' => t('flagged content'),
      'handler' => 'flag_rules_get_event_argument',
    ),
    'node_author' => array(
      'type' => 'user',
      'label' => t('flagged content author'),
      'handler' => 'flag_rules_get_node_author',
    ),
  );
}