function webform_bootstrap_page_attachments in Webform 6.x
Same name and namespace in other branches
- 8.5 modules/webform_bootstrap/webform_bootstrap.module \webform_bootstrap_page_attachments()
Implements hook_page_attachments().
File
- modules/
webform_bootstrap/ webform_bootstrap.module, line 17 - Helps support Webform to Bootstrap integration.
Code
function webform_bootstrap_page_attachments(array &$attachments) {
if (!_webform_bootstrap_is_active_theme()) {
return;
}
$attachments['#attached']['library'][] = 'webform_bootstrap/webform_bootstrap';
}