You are here

function rules_admin_form_import in Rules 6

Imports a configuration of rules, rule sets, ..

1 string reference to 'rules_admin_form_import'
rules_admin_menu in rules_admin/rules_admin.module
Implementation of hook_menu().

File

rules_admin/rules_admin.export.inc, line 15

Code

function rules_admin_form_import() {
  $form = array();
  $form['import'] = array(
    '#type' => 'textarea',
    '#title' => t('Configuration to import'),
    '#description' => t('Just paste your exported configuration here.'),
    '#rows' => 15,
    '#required' => TRUE,
  );
  $form['button'] = array(
    '#type' => 'submit',
    '#weight' => 10,
    '#value' => t('Import'),
  );
  return $form;
}