You are here

function google_admanager_preprocess_page in DFP Small Business (Google Ad Manager) 6

Same name and namespace in other branches
  1. 6.3 google_admanager.module \google_admanager_preprocess_page()
  2. 6.2 google_admanager.module \google_admanager_preprocess_page()
  3. 7.2 google_admanager.module \google_admanager_preprocess_page()

Implementation of hook_preprocess_page().

File

./google_admanager.module, line 405

Code

function google_admanager_preprocess_page(&$vars) {
  if (variable_get('google_admanager_lazy', FALSE)) {
    return;
  }

  //output the scripts through drupal_add_js()
  google_admanager_get_js();

  //this doesn't have any effect if another module/theme later overides it.
  $vars['scripts'] = drupal_get_js();
}