function simple_dialog_page_build in Simple Dialog 8
Implements hook_page_build()
File
- ./
simple_dialog.module, line 12
Code
function simple_dialog_page_build(&$page) {
$path = drupal_get_path('module', 'simple_dialog');
// Add JavaScript/CSS assets to all pages.
// @see drupal_process_attached()
$page['#attached']['css'][$path . '/css/simple_dialog.css'] = array(
'every_page' => TRUE,
);
if (\Drupal::config('simple_dialog.settings')
->get('js_all')) {
simple_dialog_attach_js($page, TRUE);
}
}