You are here

function asset_widget_library_alter in Asset 7

Implements hook_library_alter().

File

modules/asset_widget/asset_widget.module, line 378
Code for the Asset widget module.

Code

function asset_widget_library_alter(&$libraries, $module) {

  // Switch default asset tooltip library to widget library.
  if ($module == 'asset' && asset_widget_is_tooltip() && isset($libraries['asset_tooltip_inner'])) {
    unset($libraries['asset_tooltip_inner']);
    drupal_add_library('asset_widget', 'asset_widget_tooltip');
  }
}