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/image/image.admin.inc | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'modules/image/image.admin.inc') diff --git a/modules/image/image.admin.inc b/modules/image/image.admin.inc index 5f96f50e0..10faf677a 100644 --- a/modules/image/image.admin.inc +++ b/modules/image/image.admin.inc @@ -15,7 +15,9 @@ function image_style_list() { $styles = image_styles(); $page['image_style_list'] = array( '#markup' => theme('image_style_list', $styles), - '#attached_css' => array(drupal_get_path('module', 'image') . '/image.admin.css' => array('preprocess' => FALSE)), + '#attached' => array( + 'css' => array(drupal_get_path('module', 'image') . '/image.admin.css' => array('preprocess' => FALSE)), + ), ); return $page; @@ -40,7 +42,9 @@ function image_style_form(&$form_state, $style) { $form_state['image_style'] = $style; $form = array( '#tree' => TRUE, - '#attached_css' => array(drupal_get_path('module', 'image') . '/image.admin.css' => array('preprocess' => FALSE)), + '#attached' => array( + 'css' => array(drupal_get_path('module', 'image') . '/image.admin.css' => array('preprocess' => FALSE)), + ), ); // Allow the name of the style to be changed. @@ -313,7 +317,9 @@ function image_effect_form(&$form_state, $style, $effect) { $form = array( '#tree' => TRUE, - '#attached_css' => array(drupal_get_path('module', 'image') . '/image.admin.css' => array('preprocess' => FALSE)), + '#attached' => array( + 'css' => array(drupal_get_path('module', 'image') . '/image.admin.css' => array('preprocess' => FALSE)), + ), ); if (function_exists($effect['form callback'])) { $form['data'] = call_user_func($effect['form callback'], $effect['data']); -- cgit v1.2.3