diff options
author | Dries Buytaert <dries@buytaert.net> | 2009-04-26 09:14:32 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2009-04-26 09:14:32 +0000 |
commit | 1c076bc89f7a7374859e025c99f2eb5ea092188e (patch) | |
tree | 74f0307600b2b77a12bceeba6f88deafd22733f4 /includes | |
parent | 9af602fe17e6346360e640e403843494c84ecca0 (diff) | |
download | brdo-1c076bc89f7a7374859e025c99f2eb5ea092188e.tar.gz brdo-1c076bc89f7a7374859e025c99f2eb5ea092188e.tar.bz2 |
- Patch #19837 by xmacinfo, j.somers: make 'not verified' togglable as a theme setting.
Diffstat (limited to 'includes')
-rw-r--r-- | includes/theme.inc | 39 |
1 files changed, 21 insertions, 18 deletions
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')); |