From a539b0e00dedddfea36d4a96b788e42923056a78 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Sat, 5 Sep 2009 15:05:05 +0000 Subject: - Patch by #565496 by dropcube, pwolanin: changed Allow dynamic attaching of other types of stuff to render() structures. --- modules/toolbar/toolbar.module | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) (limited to 'modules/toolbar') diff --git a/modules/toolbar/toolbar.module b/modules/toolbar/toolbar.module index b17107c4c..cbebf75b6 100644 --- a/modules/toolbar/toolbar.module +++ b/modules/toolbar/toolbar.module @@ -61,12 +61,14 @@ function toolbar_build() { $module_path = drupal_get_path('module', 'toolbar'); $build = array( '#theme' => 'toolbar', - '#attached_js' => array( - $module_path . '/toolbar.js', - array('data' => 'misc/jquery.cookie.js', 'weight' => JS_LIBRARY + 2), - ), - '#attached_css' => array( - $module_path . '/toolbar.css', + '#attached'=> array( + 'js' => array( + $module_path . '/toolbar.js', + array('data' => 'misc/jquery.cookie.js', 'weight' => JS_LIBRARY + 2), + ), + 'css' => array( + $module_path . '/toolbar.css', + ), ), ); -- cgit v1.2.3