From 1c076bc89f7a7374859e025c99f2eb5ea092188e Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Sun, 26 Apr 2009 09:14:32 +0000 Subject: - Patch #19837 by xmacinfo, j.somers: make 'not verified' togglable as a theme setting. --- includes/theme.inc | 39 +++++++++++++++++++++------------------ 1 file changed, 21 insertions(+), 18 deletions(-) (limited to 'includes') diff --git a/includes/theme.inc b/includes/theme.inc index 4189cdaed..b23ba547c 100644 --- a/includes/theme.inc +++ b/includes/theme.inc @@ -906,23 +906,24 @@ 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, - 'favicon_path' => '', - 'main_menu' => 1, - 'secondary_menu' => 1, - 'toggle_logo' => 1, - 'toggle_favicon' => 1, - 'toggle_name' => 1, - 'toggle_search' => 0, - 'toggle_slogan' => 0, - 'toggle_mission' => 1, - 'toggle_node_user_picture' => 0, - 'toggle_comment_user_picture' => 0, - 'toggle_main_menu' => 1, - 'toggle_secondary_menu' => 1, + 'mission' => '', + 'default_logo' => 1, + 'logo_path' => '', + 'default_favicon' => 1, + 'favicon_path' => '', + 'main_menu' => 1, + 'secondary_menu' => 1, + 'toggle_logo' => 1, + 'toggle_favicon' => 1, + '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, + 'toggle_main_menu' => 1, + 'toggle_secondary_menu' => 1, ); $settings = array_merge($defaults, variable_get('theme_settings', array())); @@ -1680,7 +1681,9 @@ function theme_username($object) { $output = check_plain($object->name); } - $output .= ' (' . t('not verified') . ')'; + if (theme_get_setting('toggle_comment_user_verification')) { + $output .= ' (' . t('not verified') . ')'; + } } else { $output = variable_get('anonymous', t('Anonymous')); -- cgit v1.2.3