function autodialog_page_alter in Auto-Dialog 7
Implements hook_page_alter().
File
- ./
autodialog.module, line 213
Code
function autodialog_page_alter(&$page) {
$paths = variable_get('autodialog_paths');
if (!$paths || drupal_match_path(current_path(), $paths) || drupal_match_path(request_path(), $paths)) {
$module_path = drupal_get_path('module', 'autodialog');
drupal_add_library('system', 'drupal.ajax');
drupal_add_library('system', 'ui.dialog');
drupal_add_js($module_path . '/autodialog.js');
if (variable_get('autodialog_scrollfix')) {
drupal_add_js($module_path . '/jquery.ui.dialog.scrollfix/jquery.ui.dialog.scrollfix.js');
drupal_add_css($module_path . '/jquery.ui.dialog.scrollfix/jquery.ui.dialog.scrollfix.css');
}
}
if (isset($page['page_top']['toolbar']) && _autodialog_check_request()) {
$page['page_top']['toolbar']['#access'] = FALSE;
}
}