function dfp_dfp_pane_render in Doubleclick for Publishers (DFP) 7.2
Same name and namespace in other branches
- 7 plugins/content_types/dfp_pane.inc \dfp_dfp_pane_render()
Output function for the 'DFP Panel' content type.
1 string reference to 'dfp_dfp_pane_render'
- dfp_pane.inc in plugins/
content_types/ dfp_pane.inc - The 'DFP Panel' custom content type.
File
- plugins/
content_types/ dfp_pane.inc, line 23 - The 'DFP Panel' custom content type.
Code
function dfp_dfp_pane_render($subtype, $conf, $panel_args, $context) {
$content = array();
$ads = array_filter($conf['dfp_ads']);
foreach ($ads as $key => $ad) {
if (!empty($ad)) {
$content[$key] = dfp_tag($ad);
}
}
$block = new stdClass();
$block->content = $content;
return $block;
}