You are here

function button_field_condition_button_is_upgrade in Button Field 7

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

Implements hook_rules_action_base_upgrade().

Upgrade path for button_is conditions from Drupal 6 to 7.

File

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

Code

function button_field_condition_button_is_upgrade($element, RulesPlugin $target) {
  $target->settings['clicked_field:select'] = 'field';
  $target->settings['comparison_field_name'] = $element['#settings']['button_name'];
}