You are here

function ad_html_node_view in Advertisement 5.2

Same name and namespace in other branches
  1. 5 html/ad_html.module \ad_html_node_view()
  2. 6.3 html/ad_html.module \ad_html_node_view()
  3. 6 html/ad_html.module \ad_html_node_view()
  4. 6.2 html/ad_html.module \ad_html_node_view()

Helper function, display the html ad as a node.

1 call to ad_html_node_view()
ad_html_adapi in html/ad_html.module
Implementation of the ad module's _adapi hook.

File

html/ad_html.module, line 106
Enhances the ad module to support html ads.

Code

function ad_html_node_view(&$node) {
  $node->content['ad'] = array(
    '#value' => theme('box', '', stripslashes(ad_html_display_ad($node))),
    '#weight' => -1,
  );
}