function theme_google_admanager_block in DFP Small Business (Google Ad Manager) 5
Same name and namespace in other branches
- 6 google_admanager.module \theme_google_admanager_block()
- 6.2 google_admanager.module \theme_google_admanager_block()
- 7.2 google_admanager.module \theme_google_admanager_block()
Theme function the Ad Slot code
Parameters
$id google admanager account id:
$id google admanager slot name:
Return value
google admanager slot script
2 theme calls to theme_google_admanager_block()
- google_admanager_block in ./
google_admanager.module - Implementing hook_block
- _google_admanager_substitute_tags in ./
google_admanager.module - Replace all Admanager tags with their corresponding files or images.
File
- ./
google_admanager.module, line 102
Code
function theme_google_admanager_block($id, $ad_slot) {
google_admanager_add_js('GA_googleAddSlot("' . $id . '", "' . $ad_slot . '");');
return '<script type="text/javascript">GA_googleFillSlot("' . $ad_slot . '");</script>';
}