summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDries Buytaert2011-09-21 05:58:59 -0400
committerDries Buytaert2011-09-21 05:58:59 -0400
commit120dbd9760fdf0b432a6a6bd2e9827c7bc0be826 (patch)
treec5ce431f67a3f2f1a424acc3b4cd102a8e80a457
parentbd0fec9a5df89543e5966a7034760631dcd4a244 (diff)
- Patch #1122584 by 10oclock: use #attached for block_admin_display_form() instead of drupal_add_css().
-rw-r--r--modules/block/block.admin.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/block/block.admin.inc b/modules/block/block.admin.inc
index f58e373..7169190 100644
--- a/modules/block/block.admin.inc
+++ b/modules/block/block.admin.inc
@@ -77,7 +77,7 @@ function block_admin_display_prepare_blocks($theme) {
*/
function block_admin_display_form($form, &$form_state, $blocks, $theme, $block_regions = NULL) {
- drupal_add_css(drupal_get_path('module', 'block') . '/block.admin.css');
+ $form['#attached']['css'] = array(drupal_get_path('module', 'block') . '/block.admin.css');
// Get a list of block regions if one was not provided.
if (!isset($block_regions)) {