diff options
author | Dries Buytaert <dries@buytaert.net> | 2009-05-12 08:31:17 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2009-05-12 08:31:17 +0000 |
commit | a86223cd7039756510df0f9e0f5ddf38b7e04fcf (patch) | |
tree | bce2ccbe8017aa053c639979cfc4202db9254782 /includes | |
parent | a81eaade5096f284cc4d011360e9bd79c655690a (diff) | |
download | brdo-a86223cd7039756510df0f9e0f5ddf38b7e04fcf.tar.gz brdo-a86223cd7039756510df0f9e0f5ddf38b7e04fcf.tar.bz2 |
- Patch #428800 by Gabor Hojtsy: convert the mission statement to a block so we have more flexibility to place it.
Diffstat (limited to 'includes')
-rw-r--r-- | includes/theme.inc | 16 | ||||
-rw-r--r-- | includes/theme.maintenance.inc | 1 |
2 files changed, 0 insertions, 17 deletions
diff --git a/includes/theme.inc b/includes/theme.inc index 78b56136c..84b823b78 100644 --- a/includes/theme.inc +++ b/includes/theme.inc @@ -906,7 +906,6 @@ function drupal_find_theme_templates($cache, $extension, $path) { */ function theme_get_settings($key = NULL) { $defaults = array( - 'mission' => '', 'default_logo' => 1, 'logo_path' => '', 'default_favicon' => 1, @@ -918,7 +917,6 @@ function theme_get_settings($key = NULL) { 'toggle_name' => 1, 'toggle_search' => 0, 'toggle_slogan' => 0, - 'toggle_mission' => 1, 'toggle_node_user_picture' => 0, 'toggle_comment_user_picture' => 0, 'toggle_comment_user_verification' => 1, @@ -966,14 +964,6 @@ function theme_get_setting($setting_name, $refresh = FALSE) { $themes = list_themes(); $theme_object = $themes[$theme_key]; - if ($settings['mission'] == '') { - $settings['mission'] = variable_get('site_mission', ''); - } - - if (!$settings['toggle_mission']) { - $settings['mission'] = ''; - } - if ($settings['toggle_logo']) { if ($settings['default_logo']) { $settings['logo'] = base_path() . dirname($theme_object->filename) . '/logo.png'; @@ -1811,11 +1801,6 @@ function template_preprocess_page(&$variables) { $variables['layout'] = ($variables['layout'] == 'left') ? 'both' : 'right'; } - // Set mission when viewing the frontpage. - if (drupal_is_front_page()) { - $mission = filter_xss_admin(theme_get_setting('mission')); - } - // Construct page title if (drupal_get_title()) { $head_title = array(strip_tags(drupal_get_title()), variable_get('site_name', 'Drupal')); @@ -1837,7 +1822,6 @@ function template_preprocess_page(&$variables) { $variables['language']->dir = $GLOBALS['language']->direction ? 'rtl' : 'ltr'; $variables['logo'] = theme_get_setting('logo'); $variables['messages'] = $variables['show_messages'] ? theme('status_messages') : ''; - $variables['mission'] = isset($mission) ? $mission : ''; $variables['main_menu'] = theme_get_setting('toggle_main_menu') ? menu_main_menu() : array(); $variables['secondary_menu'] = theme_get_setting('toggle_secondary_menu') ? menu_secondary_menu() : array(); $variables['search_box'] = (theme_get_setting('toggle_search') ? drupal_get_form('search_theme_form') : ''); diff --git a/includes/theme.maintenance.inc b/includes/theme.maintenance.inc index 7eb3ef6aa..274566429 100644 --- a/includes/theme.maintenance.inc +++ b/includes/theme.maintenance.inc @@ -252,7 +252,6 @@ function template_preprocess_maintenance_page(&$variables) { $variables['language']->dir = $GLOBALS['language']->direction ? 'rtl' : 'ltr'; $variables['logo'] = theme_get_setting('logo'); $variables['messages'] = $variables['show_messages'] ? theme('status_messages') : ''; - $variables['mission'] = ''; $variables['main_menu'] = array(); $variables['secondary_menu'] = array(); $variables['search_box'] = ''; |