function theme_node_ad in Advertisement 5.2
Same name and namespace in other branches
- 5 ad.module \theme_node_ad()
- 6.3 ad.pages.inc \theme_node_ad()
- 6 ad.pages.inc \theme_node_ad()
- 6.2 ad.pages.inc \theme_node_ad()
- 7 ad.pages.inc \theme_node_ad()
1 theme call to theme_node_ad()
- ad_nodeapi in ./
ad.module - Drupal _nodeapi hook.
File
- ./
ad.module, line 951 - An advertising system for Drupal powered websites.
Code
function theme_node_ad($node, $yield_form = TRUE) {
$output = '';
if (ad_permission($node->nid, 'access statistics')) {
$output = theme('ad_status_display', $node);
$output .= theme('ad_statistics_display', ad_statistics($node->nid));
}
$output .= ad_click_history($node->nid);
if (variable_get('ad_filter', 0)) {
$output = check_markup($output, $node->format);
}
return $output;
}