function dfp_adtest_page in Doubleclick for Publishers (DFP) 7
Same name and namespace in other branches
- 8 src/View/dfp.adtest.inc \dfp_adtest_page()
- 7.2 dfp.adtest.inc \dfp_adtest_page()
Page callback for the DFP test page. It displays all tags on the site.
1 string reference to 'dfp_adtest_page'
- dfp_menu in ./
dfp.module - Implements hook_menu().
File
- ./
dfp.adtest.inc, line 11 - Creates a test page for DFP ads.
Code
function dfp_adtest_page() {
$output = array();
$form = drupal_get_form('dfp_adtest_form');
$output[] = array(
'#markup' => render($form),
'#attached' => array(
'css' => array(
'dfp-admin' => drupal_get_path('module', 'dfp') . '/dfp.admin.css',
),
),
);
$tags = dfp_tag_load_all();
foreach ($tags as $tag) {
$tag_slot = array(
'tag slot name' => array(
'#markup' => '<h3>' . check_plain($tag->slot) . '</h3>',
),
);
$tag_tag = dfp_tag($tag->machinename);
$tag_devel = array();
if (module_exists('devel')) {
$tag_devel['object'] = array(
'#markup' => kpr($tag, TRUE),
);
}
$output[] = array(
$tag_slot,
$tag_tag,
$tag_devel,
);
}
return $output;
}