Skip to content
Snippets Groups Projects
Commit 81ed3ecb authored by catch's avatar catch
Browse files

Issue #2003564 by manarth: Remove drupal_add_css() from block.module — use #attached.

parent 24d1333c
No related branches found
No related tags found
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
......@@ -14,8 +14,11 @@
* @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'),
),
);
}
/**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment