function button_field_rules_condition_info in Button Field 7
Same name and namespace in other branches
- 8 button_field.rules.inc \button_field_rules_condition_info()
- 6 button_field.rules.inc \button_field_rules_condition_info()
Implements hook_rules_condition_info().
File
- ./
button_field.rules.inc, line 22 - Rules integration for the button_field module.
Code
function button_field_rules_condition_info() {
return array(
'button_field_compare_button' => array(
'label' => t('Clicked button comparison'),
'parameter' => array(
'clicked_field' => array(
'label' => t('Clicked field'),
'description' => t('The button field that was clicked.'),
'type' => 'field',
),
'comparison_field_name' => array(
'label' => t('Comparison field'),
'description' => t('The field to compare the clicked button to.'),
'type' => 'text',
'options list' => '_button_field_options_list',
),
),
'group' => t('Button Field'),
'callbacks' => array(
'execute' => 'button_field_compare_button',
),
),
);
}