You are here

function button_field_rules_condition_info in Button Field 6

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

Implementation of hook_rules_condition_info().

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

Return value

array

File

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

Code

function button_field_rules_condition_info() {
  $items['button_field_condition_button_is'] = array(
    'label' => t('Button is'),
    'module' => 'Button Field',
    'arguments' => array(
      'button_name' => array(
        'type' => 'string',
        'label' => t('Field name of the button'),
      ),
    ),
  );

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