You are here

function ds_styles_form in Display Suite 6.3

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

Menu callback, show styles form.

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

File

includes/ds.display.inc, line 140
Display overview form.

Code

function ds_styles_form(&$form_state) {
  $form = array();
  $form['ds_styles'] = array(
    '#type' => 'textarea',
    '#title' => t('Styles for fields'),
    '#default_value' => variable_get('ds_styles', ''),
    '#description' => t('Configure styles which you can add to fields in the overview screen. 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><br />To group styles in the overview screen, use any number of tildes (~) as class name and the friendly name will be used as the group label in the styles selector. See <a href="http://drupal.org/node/1176182#comment-4578530">this issue</a> for more information.'),
  );
  $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 in the overview screen. 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);
}