diff options
author | Dries Buytaert <dries@buytaert.net> | 2009-09-05 15:05:05 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2009-09-05 15:05:05 +0000 |
commit | a539b0e00dedddfea36d4a96b788e42923056a78 (patch) | |
tree | fcf4876cbfa5abef45c40e134b99bc30944fde14 /modules/book | |
parent | 2431df84a2a6afb07a5214ef748cded72ac87947 (diff) | |
download | brdo-a539b0e00dedddfea36d4a96b788e42923056a78.tar.gz brdo-a539b0e00dedddfea36d4a96b788e42923056a78.tar.bz2 |
- Patch by #565496 by dropcube, pwolanin: changed Allow dynamic attaching of other types of stuff to render() structures.
Diffstat (limited to 'modules/book')
-rw-r--r-- | modules/book/book.module | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/modules/book/book.module b/modules/book/book.module index ca49a98c4..1ac28bce6 100644 --- a/modules/book/book.module +++ b/modules/book/book.module @@ -445,7 +445,9 @@ function _book_add_form_elements(&$form, $node) { '#collapsible' => TRUE, '#collapsed' => TRUE, '#group' => 'additional_settings', - '#attached_js' => array(drupal_get_path('module', 'book') . '/book.js'), + '#attached' => array( + 'js' => array(drupal_get_path('module', 'book') . '/book.js'), + ), '#tree' => TRUE, '#attributes' => array('class' => array('book-outline-form')), ); |