function button_field_compare_button in Button Field 7
Same name and namespace in other branches
- 8 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'
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;
}