summaryrefslogtreecommitdiff
path: root/modules/comment/comment.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/comment/comment.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/comment/comment.module')
-rw-r--r--modules/comment/comment.module10
1 files changed, 5 insertions, 5 deletions
diff --git a/modules/comment/comment.module b/modules/comment/comment.module
index 2f520a183..441c90dac 100644
--- a/modules/comment/comment.module
+++ b/modules/comment/comment.module
@@ -122,21 +122,21 @@ function comment_entity_info() {
function comment_theme() {
return array(
'comment_block' => array(
- 'arguments' => array(),
+ 'variables' => array(),
),
'comment_preview' => array(
- 'arguments' => array('comment' => NULL),
+ 'variables' => array('comment' => NULL),
),
'comment' => array(
'template' => 'comment',
- 'arguments' => array('elements' => NULL),
+ 'render element' => 'elements',
),
'comment_post_forbidden' => array(
- 'arguments' => array('node' => NULL),
+ 'variables' => array('node' => NULL),
),
'comment_wrapper' => array(
'template' => 'comment-wrapper',
- 'arguments' => array('content' => NULL),
+ 'render element' => 'content',
),
);
}