function google_admanager_add_block in DFP Small Business (Google Ad Manager) 7.2
Same name and namespace in other branches
- 6.3 google_admanager.module \google_admanager_add_block()
- 6 google_admanager.module \google_admanager_add_block()
- 6.2 google_admanager.module \google_admanager_add_block()
Each time there is an require to display an ad slot, the JavaScript that asks Google to fill the slot is passed to this function. If lazy mode is enable, it save the code and display it later. If not, the code is outputted immediately.
@params $text text to add. If null, returns all text.
2 calls to google_admanager_add_block()
- google_admanager_page_alter in ./
google_admanager.module - Implements hook_page_alter().
- theme_google_admanager_block in ./
google_admanager.module - Theme function the Ad Slot code
File
- ./
google_admanager.module, line 329
Code
function google_admanager_add_block($text = NULL) {
static $ga_block = array();
if (!$text) {
return $ga_block;
}
$ga_block[] = $text;
}