You are here

function bear_necessities_library_alter in Bear 7

Same name and namespace in other branches
  1. 7.2 modules/bear_necessities/bear_necessities.module \bear_necessities_library_alter()

Implements hook_library_alter().

Add our custom css for the asset widget library so that we can add the embed icon.

File

modules/bear_necessities/bear_necessities.module, line 86

Code

function bear_necessities_library_alter(&$libraries, $module) {
  if ($module === 'asset_widget') {
    $libraries['asset_widget']['css'][drupal_get_path('module', 'bear_necessities') . '/css/bear-asset-widget.css'] = array(
      'weight' => 12,
      'group' => CSS_THEME,
    );
  }
}