summaryrefslogtreecommitdiff
path: root/modules/file/file.module
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/file/file.module
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/file/file.module')
-rw-r--r--modules/file/file.module6
1 files changed, 4 insertions, 2 deletions
diff --git a/modules/file/file.module b/modules/file/file.module
index 21b147889..4af5bae07 100644
--- a/modules/file/file.module
+++ b/modules/file/file.module
@@ -50,8 +50,10 @@ function file_elements() {
'#upload_validators' => array(),
'#upload_location' => NULL,
'#extended' => FALSE,
- '#attached_css' => array($file_path . '/file.css'),
- '#attached_js' => array($file_path . '/file.js'),
+ '#attached' => array(
+ 'css' => array($file_path . '/file.css'),
+ 'js' => array($file_path . '/file.js'),
+ ),
);
return $elements;