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/path/path.module | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'modules/path') diff --git a/modules/path/path.module b/modules/path/path.module index 0d811b230..81ae6f49c 100644 --- a/modules/path/path.module +++ b/modules/path/path.module @@ -234,7 +234,9 @@ function path_form_alter(&$form, $form_state, $form_id) { '#collapsible' => TRUE, '#collapsed' => empty($path), '#group' => 'additional_settings', - '#attached_js' => array(drupal_get_path('module', 'path') . '/path.js'), + '#attached' => array( + 'js' => array(drupal_get_path('module', 'path') . '/path.js'), + ), '#access' => user_access('create url aliases'), '#weight' => 30, ); -- cgit v1.2.3