summaryrefslogtreecommitdiff
path: root/modules/image
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2009-09-05 15:05:05 +0000
committerDries Buytaert <dries@buytaert.net>2009-09-05 15:05:05 +0000
commita539b0e00dedddfea36d4a96b788e42923056a78 (patch)
treefcf4876cbfa5abef45c40e134b99bc30944fde14 /modules/image
parent2431df84a2a6afb07a5214ef748cded72ac87947 (diff)
downloadbrdo-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/image')
-rw-r--r--modules/image/image.admin.inc12
1 files changed, 9 insertions, 3 deletions
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']);