function rules_action_data_calc_form_alter

Form alter callback for the data calculation action.

Related topics

File

modules/data.rules.inc, line 321

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(),
    );
}