forked from mattbanks/Drupal-7-Starter-Theme
-
Notifications
You must be signed in to change notification settings - Fork 0
/
theme-settings.php
25 lines (20 loc) · 694 Bytes
/
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
<?php
/**
* Implements hook_form_system_theme_settings_alter() function.
*
* @param $form
* Nested array of form elements that comprise the form.
* @param $form_state
* A keyed array containing the current state of the form.
*/
function gulp_boilerplate_form_system_theme_settings_alter(&$form, &$form_state, $form_id = NULL) {
//////////////////////////////
// Remove a bunch of useless theme settings
//////////////////////////////
unset($form['theme_settings']['toggle_favicon']);
//////////////////////////////
// Logo and Favicon
//////////////////////////////
unset($form['logo']);
unset($form['favicon']); //These are defined in templates/html.tpl.php
}