You are here

function ad_html_display_ad in Advertisement 5

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

Function used to display the selected ad.

2 calls to ad_html_display_ad()
ad_html_node_form in html/ad_html.module
Adapi helper function for displaying a node form.
ad_html_node_view in html/ad_html.module
Helper function, display the html ad as a node.

File

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

Code

function ad_html_display_ad($ad) {
  return "<div class=\"html-advertisement\" id=\"ad-{$ad->aid}\"><div class=\"ad-header\">" . check_markup($ad->html, $ad->format, FALSE) . '</div></div>';
}