You are here

function rules_ui_form_export_rules_config in Rules 7.2

A simple form just showing a textarea with the export.

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

File

ui/ui.forms.inc, line 103
Rules User Interface forms.

Code

function rules_ui_form_export_rules_config($form, &$form_state, $rules_config, $base_path) {
  $form['export'] = array(
    '#type' => 'textarea',
    '#title' => t('Export'),
    '#description' => t('For importing copy the content of the text area and paste it into the import page.'),
    '#rows' => 25,
    '#default_value' => $rules_config
      ->export(),
  );
  return $form;
}