You are here

function micon_library_info_alter in Micon 8

Same name and namespace in other branches
  1. 2.x micon.module \micon_library_info_alter()

Implements hook_library_info_alter().

Adds Micon stylesheets to the micon library.

File

./micon.module, line 98
Contains micon.module.

Code

function micon_library_info_alter(&$libraries, $extension) {
  if ($extension === 'micon') {
    foreach (Micon::loadActive() as $micon) {
      $libraries['micon']['dependencies'][] = 'micon/micon.' . $micon
        ->id();
    }
  }
}