This repository has been archived by the owner on Jul 16, 2024. It is now read-only.
forked from govCMS/doca_min_theme
-
Notifications
You must be signed in to change notification settings - Fork 0
/
theme-settings.php
49 lines (43 loc) · 1.55 KB
/
theme-settings.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
<?php
/**
* @file
* Theme settings.
*/
/**
* Implements hook_form_system_theme_settings_alter().
*/
function ministers_form_system_theme_settings_alter(&$form, &$form_state, $form_id = NULL) {
// Work-around for a core bug affecting admin themes. See issue #943212.
if (isset($form_id)) {
return;
}
// Create the form using Forms API: http://api.drupal.org/api/7
// Delete this line if you want to use this setting
// $form['GOVCMS_STARTERKIT_example'] = array(
// '#type' => 'checkbox',
// '#title' => t('GOVCMS_STARTERKIT sample setting'),
// '#default_value' => theme_get_setting('GOVCMS_STARTERKIT_example'),
// );
//
// Remove some of the base theme's settings.
/* -- Delete this line if you want to turn off this setting.
// We don't need to toggle wireframes on this site.
unset($form['themedev']['zen_wireframes']);
// */
$form['default_media_img_alt'] = array(
'#type' => 'fieldset',
'#title' => t('Default media tiles image alt text'),
'#description' => t(""),
'#collapsible' => TRUE,
'#collapsed' => FALSE,
);
$form['default_media_img_alt']['default_media_img_alt'] = array(
'#type' => 'textfield',
'#title' => t(''),
'#description' => t('The default alt text when image in media tiles do have an alt text. If not specified, no alt text will for media tile image without original alt text.'),
'#size' => 50,
'#maxlength' => 50,
'#default_value' => theme_get_setting('default_media_img_alt'),
);
// We are editing the $form in place, so we don't need to return anything.
}