diff options
author | Angie Byron <webchick@24967.no-reply.drupal.org> | 2009-10-23 22:24:19 +0000 |
---|---|---|
committer | Angie Byron <webchick@24967.no-reply.drupal.org> | 2009-10-23 22:24:19 +0000 |
commit | a7149821d61d00cfb62d5ab67cbc2a282d53d41a (patch) | |
tree | fa0022b756838f583c2641a84241de80fb177606 /modules/book | |
parent | f2d90e99fb1107d78291ab2899f9fdb08bdfa979 (diff) | |
download | brdo-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/book')
-rw-r--r-- | modules/book/book.module | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/modules/book/book.module b/modules/book/book.module index eb76ed408..78b856c3b 100644 --- a/modules/book/book.module +++ b/modules/book/book.module @@ -12,25 +12,25 @@ function book_theme() { return array( 'book_navigation' => array( - 'arguments' => array('book_link' => NULL), + 'variables' => array('book_link' => NULL), 'template' => 'book-navigation', ), 'book_export_html' => array( - 'arguments' => array('title' => NULL, 'contents' => NULL, 'depth' => NULL), + 'variables' => array('title' => NULL, 'contents' => NULL, 'depth' => NULL), 'template' => 'book-export-html', ), 'book_admin_table' => array( - 'arguments' => array('form' => NULL), + 'render element' => 'form', ), 'book_title_link' => array( - 'arguments' => array('link' => NULL), + 'variables' => array('link' => NULL), ), 'book_all_books_block' => array( - 'arguments' => array('book_menus' => array()), + 'render element' => 'book_menus', 'template' => 'book-all-books-block', ), 'book_node_export_html' => array( - 'arguments' => array('node' => NULL, 'children' => NULL), + 'variables' => array('node' => NULL, 'children' => NULL), 'template' => 'book-node-export-html', ), ); |