summaryrefslogtreecommitdiff
path: root/includes/theme.inc
diff options
context:
space:
mode:
Diffstat (limited to 'includes/theme.inc')
-rw-r--r--includes/theme.inc39
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'));