You are here

function configuration_import_form in Configuration Management 7

Menu Callback Form.

1 string reference to 'configuration_import_form'
configuration_menu in ./configuration.module
Implements hook_menu().

File

./configuration.admin.inc, line 414

Code

function configuration_import_form($form, &$form_state) {
  $form['header'] = array(
    '#markup' => 'Importing configurations will write your configurations directly to the activestore. DO NOT USE THIS ON A PRODUCTION SITE!',
    '#prefix' => '<div>',
    '#suffix' => '</div>',
  );
  $form['import_configurations'] = array(
    '#type' => 'file',
    '#title' => t('Import configurations'),
    '#description' => t('Select the file you exported from another site.'),
    '#size' => 40,
  );
  $form['import'] = array(
    '#type' => 'submit',
    '#value' => t('Import'),
  );
  return $form;
}