You are here

function button_field_compare_button in Button Field 8

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

Compares the button that was clicked to the field name that was specified.

Parameters

array $clicked_field: Field that was clicked to trigger the current event.

string $comparison_field_name: Name of the field to compate the clicked field to.

Return value

boolean Whether or not the fields are the same.

2 string references to 'button_field_compare_button'
button_field_condition_button_is_upgrade_map_name in ./button_field.rules.inc
Implements hook_rules_action_base_upgrade_map_name().
button_field_rules_condition_info in ./button_field.rules.inc
Implements hook_rules_condition_info().

File

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

Code

function button_field_compare_button($clicked_field, $comparison_field_name) {
  return $clicked_field['field_name'] == $comparison_field_name;
}