You are here

function rules_action_data_calc_form_alter in Rules 7.2

Form alter callback for the data calculation action.

Related topics

File

modules/data.rules.inc, line 321
General data related rules integration.

Code

function rules_action_data_calc_form_alter(&$form, &$form_state, $options, RulesAbstractPlugin $element) {
  $form['reload'] = array(
    '#weight' => 5,
    '#type' => 'submit',
    '#name' => 'reload',
    '#value' => t('Reload form'),
    '#limit_validation_errors' => array(
      array(
        'parameter',
        'input_1',
      ),
    ),
    '#submit' => array(
      'rules_form_submit_rebuild',
    ),
    '#ajax' => rules_ui_form_default_ajax(),
  );
}