Remove hook for overriding Bulma

This commit is contained in:
benjamin melançon 2018-08-21 18:44:34 -04:00
parent bf9dc14bdd
commit 2ce17a5c32

View file

@ -7,21 +7,6 @@
* Theme functions. * Theme functions.
*/ */
/**
* Implements hook_library_info_alter().
*/
function agarica_library_info_alter(&$libraries, $extension) {
if ($extension === 'bulma' && isset($libraries['global'])) {
// Since the replaced library files are no longer located in a directory
// relative to the original extension, specify an absolute path (relative
// to DRUPAL_ROOT / base_path()) to the new location.
$css_file = '/' . drupal_get_path('theme', 'agarica') . '/styleguide/assets/css/agaric.css';
$libraries['global']['css']['base'] = [
$css_file => [],
];
}
}
/** /**
* Implements hook_theme_suggestions_HOOK_alter for blocks. * Implements hook_theme_suggestions_HOOK_alter for blocks.
* *