You are here

function button_field_rules_event_info in Button Field 8

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

Implements hook_rules_event_info().

File

./button_field.rules.inc, line 50
Rules integration for the button_field module.

Code

function button_field_rules_event_info() {
  return array(
    'button_field_clicked' => array(
      'label' => t('User clicks a button field'),
      'group' => t('Button Field'),
      'variables' => array(
        'field' => array(
          'type' => 'field',
          'label' => t('Button field'),
          'description' => t('Button field that was clicked.'),
        ),
        'entity' => array(
          'type' => 'entity',
          'label' => t('Entity'),
          'description' => t('Entity from the button that was clicked.'),
        ),
      ),
    ),
  );
}