You are here

function button_field_condition_button_is in Button Field 6

Compares the field name of the button that was clicked to the field name that was expected.

Parameters

string $button_name:

Return value

boolean

File

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

Code

function button_field_condition_button_is($button_name, $arguemnts, $settings, $variables) {
  $id = $_REQUEST['id'];
  list($field_name, $nid) = explode('-', $id);
  return $button_name == $field_name;
}