summaryrefslogtreecommitdiff
path: root/modules/book
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2009-09-05 15:05:05 +0000
committerDries Buytaert <dries@buytaert.net>2009-09-05 15:05:05 +0000
commita539b0e00dedddfea36d4a96b788e42923056a78 (patch)
treefcf4876cbfa5abef45c40e134b99bc30944fde14 /modules/book
parent2431df84a2a6afb07a5214ef748cded72ac87947 (diff)
downloadbrdo-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.module4
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')),
);