2020-08-14 13:36:36 +02:00

34 lines
988 B
PHP

<?php
/**
* @file
* Contains the theme's settings form.
*/
/**
* Implements hook_form_system_theme_settings_alter().
*/
function STARTERKIT_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['STARTERKIT_example'] = array(
'#type' => 'checkbox',
'#title' => t('STARTERKIT sample setting'),
'#default_value' => theme_get_setting('STARTERKIT_example'),
'#description' => t("This example option doesn't do anything."),
);
// */
/* -- Delete this line if you want to remove this base theme setting.
// We don't need breadcrumbs to be configurable on this site.
unset($form['breadcrumb']);
// */
// We are editing the $form in place, so we don't need to return anything.
}