function lightning_scheduler_library_info_alter in Lightning Scheduler 8
Implements hook_library_info_alter().
File
- ./
lightning_scheduler.module, line 16
Code
function lightning_scheduler_library_info_alter(array &$libraries, $extension) {
if ($extension === 'seven') {
$dir = drupal_get_path('module', 'lightning_scheduler');
$libraries['lightning_scheduler.widget'] = [
'css' => [
'theme' => [
// @TODO This will break if the site is running in a subdirectory.
"/{$dir}/css/component.seven.css" => [],
],
],
];
}
}