function rules_ui_form_edit_rules_config

Edit a rules configuration.

1 string reference to 'rules_ui_form_edit_rules_config'
RulesUIController::config_menu in ui/ui.controller.inc
Generates menu items to manipulate rules configurations.

File

ui/ui.forms.inc, line 48

Code

function rules_ui_form_edit_rules_config($form, &$form_state, $rules_config, $base_path) {
    RulesPluginUI::$basePath = $base_path;
    $form_state += array(
        'rules_element' => $rules_config,
    );
    // Add the rule configuration's form.
    $rules_config->form($form, $form_state, array(
        'show settings' => TRUE,
        'button' => TRUE,
    ));
    $form['#validate'] = array(
        'rules_ui_form_rules_config_validate',
    );
    return $form;
}