You are here

function ds_import in Display Suite 6

Same name and namespace in other branches
  1. 6.3 includes/ds.tools.inc \ds_import()
  2. 6.2 includes/ds.tools.inc \ds_import()

Import functionality.

1 string reference to 'ds_import'
_ds_ui_menu in includes/ds.registry.inc
Return menu items and import default settings.

File

includes/ds.tools.inc, line 11
Tools for Display suite like export & import.

Code

function ds_import($form_state) {
  $form = array();
  $form['import'] = array(
    '#title' => t('Import display settings'),
    '#description' => t('Paste data to import field settings. Do not include the function declaration from the export. Note: only display settings can be imported here. <strong>Warning: existing data will be overwritten!</strong>'),
    '#type' => 'textarea',
    '#cols' => 60,
    '#default_value' => '',
    '#required' => TRUE,
    '#rows' => 10,
  );
  $form['submit'] = array(
    '#type' => 'submit',
    '#value' => t('Import'),
  );
  return $form;
}