function ad_page_alter in Advertisement 7.3
Implements hook_page_alter().
File
- ./
ad.module, line 66 - Core code for the ad module.
Code
function ad_page_alter(&$page) {
// Path to call to serve the ads.
// By default it calls the menu item this module defines. With proper
// configuration the ad_serve.php script can be used instead, possibly also
// linking it with another name, to mask it from ad blockers.
drupal_add_js(array(
'ad' => array(
'ServePath' => variable_get('ad_serve_path', 'ad/get'),
'UserID' => $GLOBALS['user']->uid,
),
), 'setting');
}