function lightning_scheduler_library_info_alter in Lightning Workflow 8.3
Same name and namespace in other branches
- 8.2 modules/lightning_scheduler/lightning_scheduler.module \lightning_scheduler_library_info_alter()
Implements hook_library_info_alter().
File
- modules/
lightning_scheduler/ lightning_scheduler.module, line 23 - Contains hook implementations for Lightning Scheduler.
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" => [],
],
],
];
}
}