browserclass.module in Browser Class 8
Same filename and directory in other branches
Attaches the Browser Class JS to every page.
File
browserclass.moduleView source
<?php
/**
* @file
* Attaches the Browser Class JS to every page.
*/
/**
* Implements hook_page_attachments_alter().
*/
function browserclass_page_attachments_alter(array &$attachments) {
$attachments['#attached']['library'][] = 'browserclass/global-browserclass';
}
Functions
Name![]() |
Description |
---|---|
browserclass_page_attachments_alter | Implements hook_page_attachments_alter(). |