summaryrefslogtreecommitdiff
path: root/modules/forum/forum.module
diff options
context:
space:
mode:
authorGábor Hojtsy <gabor@hojtsy.hu>2007-08-30 18:58:12 +0000
committerGábor Hojtsy <gabor@hojtsy.hu>2007-08-30 18:58:12 +0000
commitd82fe113bc4093356c7ef5f8ee210ca4340dced8 (patch)
tree527b6d96b52efdfb3ee8b44d69af0f481c26940a /modules/forum/forum.module
parent6d25504ce2bb5cda44f1f328720c46c6f6e2de4b (diff)
downloadbrdo-d82fe113bc4093356c7ef5f8ee210ca4340dced8.tar.gz
brdo-d82fe113bc4093356c7ef5f8ee210ca4340dced8.tar.bz2
#53905 by fax8, Gurpartap Singh and dvessel: give meaningful names to term variables in forum templates and add unique IDs for easier themeing
Diffstat (limited to 'modules/forum/forum.module')
-rw-r--r--modules/forum/forum.module6
1 files changed, 6 insertions, 0 deletions
diff --git a/modules/forum/forum.module b/modules/forum/forum.module
index bf505fc6f..61c52ad09 100644
--- a/modules/forum/forum.module
+++ b/modules/forum/forum.module
@@ -742,6 +742,9 @@ function template_preprocess_forum_list(&$variables) {
}
$variables['forums'][$id]->last_reply = theme('forum_submitted', $forum->last_post);
}
+ // Give meaning to $tid for themers. $tid actually stands for term id.
+ $variables['forum_id'] = $variables['tid'];
+ unset($variables['tid']);
}
/**
@@ -799,6 +802,9 @@ function template_preprocess_forum_topic_list(&$variables) {
// Make this safe for the template
$variables['topics'] = array();
}
+ // Give meaning to $tid for themers. $tid actually stands for term id.
+ $variables['topic_id'] = $variables['tid'];
+ unset($variables['tid']);
$variables['pager'] = theme('pager', NULL, $variables['forum_per_page'], 0);
}