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/file/file.module | |
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/file/file.module')
-rw-r--r-- | modules/file/file.module | 6 |
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; |