function elsinore_settings($saved_settings) { // Get the default values from the .info file. $defaults = mothership_theme_get_default_settings('elsinore'); $settings = array_merge($defaults, $saved_settings); // Add the base theme's settings. $form = array(); $form += mothership_settings($saved_settings, $defaults); // Return the form return $form; }
function urbanmediaspace_mothership_settings($saved_settings) { // Get the default values from the .info file. $defaults = mothership_theme_get_default_settings('urbanmediaspace_mothership'); //EDIT THIS! $settings = array_merge($defaults, $saved_settings); // Add the base theme's settings. $form = array(); $form += mothership_settings($saved_settings, $defaults); // Return the form return $form; }
function aarhus_settings($saved_settings) { // Get the default values from the .info file. $defaults = mothership_theme_get_default_settings('aarhus'); $settings = array_merge($defaults, $saved_settings); // Add the base theme's settings. $form = array(); $form += mothership_settings($saved_settings, $defaults); // ----- Theme specific settings // Toggle badges (by default in footer). $form['badge_settings'] = array('#type' => 'fieldset', '#title' => t('Badge settings'), '#weight' => -5, 'badge_ting_enable' => array('#type' => 'checkbox', '#title' => t('Show Empowered by TING badge'), '#default_value' => $settings['badge_ting_enable']), 'badge_citybrand_enable' => array('#type' => 'checkbox', '#title' => t('Show Citybrand Message'), '#default_value' => $settings['badge_citybrand_enable']), 'badge_aarhus2017_enable' => array('#type' => 'checkbox', '#title' => t('Show Aarhus 2017 badge'), '#default_value' => $settings['badge_aarhus2017_enable'])); // Optionally load Typekit $form['typekit_settings'] = array('#type' => 'fieldset', '#title' => t('Typekit Settings'), '#weight' => 6, 'typekit_enable' => array('#type' => 'checkbox', '#title' => t('Enable TypeKit'), '#description' => t('Enable Typekit for this site'), '#default_value' => $settings['typekit_enable']), 'typekit_kit_id' => array('#type' => 'textfield', '#title' => t('ID for your kit'), '#size' => 20, '#maxlength' => 30, '#default_value' => $settings['typekit_kit_id'])); // Return the form return $form; }