You are here

function ds_styles_form in Display Suite 7

Same name and namespace in other branches
  1. 6.3 includes/ds.display.inc \ds_styles_form()
  2. 6 includes/ds.display.inc \ds_styles_form()
  3. 6.2 includes/ds.display.inc \ds_styles_form()

Menu callback, show styles form.

1 string reference to 'ds_styles_form'
ds_menu in ./ds.module
Implements hook_menu().

File

./ds.styles.inc, line 11
Administrative functions for managing styles.

Code

function ds_styles_form($form, $form_state) {
  $form = array();
  $form['ds_styles_regions'] = array(
    '#type' => 'textarea',
    '#title' => t('Styles for regions'),
    '#default_value' => variable_get('ds_styles_regions', ''),
    '#description' => t('Configure styles which you can add to regions on the "manage display" screens. Add multiple styles line per line.<br />If you want to have a friendly name, separate class and friendly name by |, but this is not required. eg:<br /><em>class_name_1<br />class_name_2|Friendly name<br />class_name_3</em>'),
  );
  return system_settings_form($form);
}