You are here

function button_field_rules_event_info in Button Field 6

Same name and namespace in other branches
  1. 8 button_field.rules.inc \button_field_rules_event_info()
  2. 7 button_field.rules.inc \button_field_rules_event_info()

Implementation of hook_rules_event_info().

@todo find out how to pass the field as an argument

Return value

array

File

./button_field.rules.inc, line 51
Rules integration with the button_field module.

Code

function button_field_rules_event_info() {
  $items['button_field_clicked'] = array(
    'label' => t('Users Clicks a Button'),
    'module' => 'Button Field',
    'arguments' => array(
      'node' => array(
        'type' => 'node',
        'label' => t('Node that the button was on'),
      ),
      'user' => array(
        'type' => 'user',
        'label' => t('Currently logged in user'),
      ),
    ),
  );

  // end $items['button_field_clicked']
  return $items;
}