summaryrefslogtreecommitdiff
path: root/modules/forum/forum.module
diff options
context:
space:
mode:
authorAngie Byron <webchick@24967.no-reply.drupal.org>2009-10-23 22:24:19 +0000
committerAngie Byron <webchick@24967.no-reply.drupal.org>2009-10-23 22:24:19 +0000
commita7149821d61d00cfb62d5ab67cbc2a282d53d41a (patch)
treefa0022b756838f583c2641a84241de80fb177606 /modules/forum/forum.module
parentf2d90e99fb1107d78291ab2899f9fdb08bdfa979 (diff)
downloadbrdo-a7149821d61d00cfb62d5ab67cbc2a282d53d41a.tar.gz
brdo-a7149821d61d00cfb62d5ab67cbc2a282d53d41a.tar.bz2
#600974 by effulgentsia, JohnAlbin, sun, and Damien Tournoud: Allow theme functions to take one argument without any hacks. NOTE: This is an API change in hook_theme().
Diffstat (limited to 'modules/forum/forum.module')
-rw-r--r--modules/forum/forum.module12
1 files changed, 6 insertions, 6 deletions
diff --git a/modules/forum/forum.module b/modules/forum/forum.module
index 955789d77..72653dfe5 100644
--- a/modules/forum/forum.module
+++ b/modules/forum/forum.module
@@ -39,26 +39,26 @@ function forum_theme() {
return array(
'forums' => array(
'template' => 'forums',
- 'arguments' => array('forums' => NULL, 'topics' => NULL, 'parents' => NULL, 'tid' => NULL, 'sortby' => NULL, 'forum_per_page' => NULL),
+ 'variables' => array('forums' => NULL, 'topics' => NULL, 'parents' => NULL, 'tid' => NULL, 'sortby' => NULL, 'forum_per_page' => NULL),
),
'forum_list' => array(
'template' => 'forum-list',
- 'arguments' => array('forums' => NULL, 'parents' => NULL, 'tid' => NULL),
+ 'variables' => array('forums' => NULL, 'parents' => NULL, 'tid' => NULL),
),
'forum_topic_list' => array(
'template' => 'forum-topic-list',
- 'arguments' => array('tid' => NULL, 'topics' => NULL, 'sortby' => NULL, 'forum_per_page' => NULL),
+ 'variables' => array('tid' => NULL, 'topics' => NULL, 'sortby' => NULL, 'forum_per_page' => NULL),
),
'forum_icon' => array(
'template' => 'forum-icon',
- 'arguments' => array('new_posts' => NULL, 'num_posts' => 0, 'comment_mode' => 0, 'sticky' => 0),
+ 'variables' => array('new_posts' => NULL, 'num_posts' => 0, 'comment_mode' => 0, 'sticky' => 0),
),
'forum_submitted' => array(
'template' => 'forum-submitted',
- 'arguments' => array('topic' => NULL),
+ 'variables' => array('topic' => NULL),
),
'forum_form' => array(
- 'arguments' => array('form' => NULL),
+ 'render element' => 'form',
'file' => 'forum.admin.inc',
),
);