summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorcatch2013-06-02 11:02:10 (GMT)
committercatch2013-06-02 11:02:10 (GMT)
commit81ed3ecb0f6d92ca851c41d75b1d0902dee1116b (patch)
treeafeaf660622858cba4bbba5798801a92cd854276
parent24d1333cd5c9d21072195cf83104a70dfeb539ab (diff)
Issue #2003564 by manarth: Remove drupal_add_css() from block.module — use #attached.
-rw-r--r--core/modules/block/block.admin.inc7
1 files changed, 5 insertions, 2 deletions
diff --git a/core/modules/block/block.admin.inc b/core/modules/block/block.admin.inc
index 78df3fe..10927bd 100644
--- a/core/modules/block/block.admin.inc
+++ b/core/modules/block/block.admin.inc
@@ -14,8 +14,11 @@ use Drupal\Core\Template\Attribute;
* @see block_menu()
*/
function block_admin_demo($theme = NULL) {
- drupal_add_css(drupal_get_path('module', 'block') . '/block.admin.css');
- return '';
+ return array(
+ '#attached' => array(
+ 'css' => array(drupal_get_path('module', 'block') . '/block.admin.css'),
+ ),
+ );
}
/**