From a7149821d61d00cfb62d5ab67cbc2a282d53d41a Mon Sep 17 00:00:00 2001 From: Angie Byron Date: Fri, 23 Oct 2009 22:24:19 +0000 Subject: #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(). --- modules/forum/forum.module | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'modules/forum/forum.module') 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', ), ); -- cgit v1.2.3