summaryrefslogtreecommitdiff
path: root/modules/forum/forum.module
diff options
context:
space:
mode:
Diffstat (limited to 'modules/forum/forum.module')
-rw-r--r--modules/forum/forum.module12
1 files changed, 8 insertions, 4 deletions
diff --git a/modules/forum/forum.module b/modules/forum/forum.module
index f5d779a91..d89f25e7e 100644
--- a/modules/forum/forum.module
+++ b/modules/forum/forum.module
@@ -1135,18 +1135,22 @@ function template_preprocess_forum_topic_list(&$variables) {
function template_preprocess_forum_icon(&$variables) {
$variables['hot_threshold'] = variable_get('forum_hot_topic', 15);
if ($variables['num_posts'] > $variables['hot_threshold']) {
- $variables['icon'] = $variables['new_posts'] ? 'hot-new' : 'hot';
+ $variables['icon_class'] = $variables['new_posts'] ? 'hot-new' : 'hot';
+ $variables['icon_title'] = $variables['new_posts'] ? t('Hot topic, new comments') : t('Hot topic');
}
else {
- $variables['icon'] = $variables['new_posts'] ? 'new' : 'default';
+ $variables['icon_class'] = $variables['new_posts'] ? 'new' : 'default';
+ $variables['icon_title'] = $variables['new_posts'] ? t('New comments') : t('Normal topic');
}
if ($variables['comment_mode'] == COMMENT_NODE_CLOSED || $variables['comment_mode'] == COMMENT_NODE_HIDDEN) {
- $variables['icon'] = 'closed';
+ $variables['icon_class'] = 'closed';
+ $variables['icon_title'] = t('Closed topic');
}
if ($variables['sticky'] == 1) {
- $variables['icon'] = 'sticky';
+ $variables['icon_class'] = 'sticky';
+ $variables['icon_title'] = t('Sticky topic');
}
}