-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy paththeme-settings.php
More file actions
31 lines (27 loc) · 889 Bytes
/
theme-settings.php
File metadata and controls
31 lines (27 loc) · 889 Bytes
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
<?php
/**
* @file
* Theme settings.
*/
/**
* Implements theme_settings().
*/
function asf_form_system_theme_settings_alter(&$form, &$form_state) {
// Ensure this include file is loaded when the form is rebuilt from the cache.
$form_state['build_info']['files']['form'] = drupal_get_path('theme', 'default') . '/theme-settings.php';
// Add theme settings here.
$form['asf_theme_settings'] = array(
'#title' => t('Theme Settings'),
'#type' => 'fieldset',
);
// Copyright.
$copyright = theme_get_setting('copyright');
$form['asf_theme_settings']['copyright'] = array(
'#title' => t('Copyright'),
'#type' => 'text_format',
'#format' => $copyright['format'],
'#default_value' => $copyright['value'] ? $copyright['value'] : t('Drupal is a registered trademark of Dries Buytaert.'),
);
// Return the additional form widgets.
return $form;
}