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/upload/upload.module | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'modules/upload/upload.module') diff --git a/modules/upload/upload.module b/modules/upload/upload.module index 26a284439..76bc7b2b6 100644 --- a/modules/upload/upload.module +++ b/modules/upload/upload.module @@ -231,7 +231,9 @@ function upload_form_alter(&$form, $form_state, $form_id) { '#collapsible' => TRUE, '#collapsed' => empty($node->files), '#group' => 'additional_settings', - '#attached_js' => array(drupal_get_path('module', 'upload') . '/upload.js'), + '#attached' => array( + 'js' => array(drupal_get_path('module', 'upload') . '/upload.js'), + ), '#description' => t('Changes made to the attachments are not permanent until you save this post. The first "listed" file will be included in RSS feeds.'), '#weight' => 30, ); -- cgit v1.2.3