summaryrefslogtreecommitdiff
path: root/modules/node/node.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/node/node.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/node/node.module')
-rw-r--r--modules/node/node.module20
1 files changed, 10 insertions, 10 deletions
diff --git a/modules/node/node.module b/modules/node/node.module
index 15dc90962..3e7a5ad01 100644
--- a/modules/node/node.module
+++ b/modules/node/node.module
@@ -122,40 +122,40 @@ function node_help($path, $arg) {
function node_theme() {
return array(
'node' => array(
- 'arguments' => array('elements' => NULL),
+ 'render element' => 'elements',
'template' => 'node',
),
'node_list' => array(
- 'arguments' => array('items' => NULL, 'title' => NULL),
+ 'variables' => array('items' => NULL, 'title' => NULL),
),
'node_search_admin' => array(
- 'arguments' => array('form' => NULL),
+ 'render element' => 'form',
),
'node_filter_form' => array(
- 'arguments' => array('form' => NULL),
+ 'render element' => 'form',
'file' => 'node.admin.inc',
),
'node_filters' => array(
- 'arguments' => array('form' => NULL),
+ 'render element' => 'form',
'file' => 'node.admin.inc',
),
'node_add_list' => array(
- 'arguments' => array('content' => NULL),
+ 'variables' => array('content' => NULL),
'file' => 'node.pages.inc',
),
'node_form' => array(
- 'arguments' => array('form' => NULL),
+ 'render element' => 'form',
'file' => 'node.pages.inc',
),
'node_preview' => array(
- 'arguments' => array('node' => NULL),
+ 'variables' => array('node' => NULL),
'file' => 'node.pages.inc',
),
'node_log_message' => array(
- 'arguments' => array('log' => NULL),
+ 'variables' => array('log' => NULL),
),
'node_admin_overview' => array(
- 'arguments' => array('name' => NULL, 'type' => NULL),
+ 'variables' => array('name' => NULL, 'type' => NULL),
),
);
}