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/menu/menu.admin.inc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'modules/menu/menu.admin.inc') diff --git a/modules/menu/menu.admin.inc b/modules/menu/menu.admin.inc index f116a166b..48818e791 100644 --- a/modules/menu/menu.admin.inc +++ b/modules/menu/menu.admin.inc @@ -448,7 +448,9 @@ function menu_edit_menu(&$form_state, $type, $menu = array()) { '#maxsize' => MENU_MAX_MENU_NAME_LENGTH_UI, '#description' => t('This text will be used to construct the URL for the menu. The name must contain only lowercase letters, numbers and hyphens, and must be unique.'), '#required' => TRUE, - '#attached_js' => array(drupal_get_path('module', 'system') . '/system.js', $js_settings), + '#attached' => array( + 'js' => array(drupal_get_path('module', 'system') . '/system.js', $js_settings), + ), ); } -- cgit v1.2.3