You are here

function theme_node_ad in Advertisement 5.2

Same name and namespace in other branches
  1. 5 ad.module \theme_node_ad()
  2. 6.3 ad.pages.inc \theme_node_ad()
  3. 6 ad.pages.inc \theme_node_ad()
  4. 6.2 ad.pages.inc \theme_node_ad()
  5. 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;
}