Projet

Général

Profil

Paste
Télécharger (989 octets) Statistiques
| Branche: | Révision:

root / drupal7 / sites / all / themes / rubik / theme-settings.php @ 87dbc3bf

1
<?php
2
/**
3
 * Implements hook_form_system_theme_settings_alter() function.
4
 *
5
 * @param $form
6
 *   Nested array of form elements that comprise the form.
7
 * @param $form_state
8
 *   A keyed array containing the current state of the form.
9
 */
10
function rubik_form_system_theme_settings_alter(&$form, $form_state, $form_id = NULL) {
11
  // Work-around for a core bug affecting admin themes. See issue #943212.
12
  if (isset($form_id)) {
13
    return;
14
  }
15

    
16
  $form['rubik'] = array(
17
    '#type' => 'fieldset',
18
    '#title' => t('Rubik'),
19
  );
20
  $form['rubik']['rubik_inline_field_descriptions'] = array(
21
    '#type' => 'checkbox',
22
    '#title' => t('Display form field descriptions inline.'),
23
    '#description' => t("By default, each field's description is displayed in a pop-up, which is only visible when hovering over that field. Select this option to make all field descriptions visible at all times."),
24
    '#default_value' => theme_get_setting('rubik_inline_field_descriptions', 'rubik'),
25
  );
26
}