function ad_html_display_ad in Advertisement 5.2
Same name and namespace in other branches
- 5 html/ad_html.module \ad_html_display_ad()
- 6.3 html/ad_html.module \ad_html_display_ad()
- 6 html/ad_html.module \ad_html_display_ad()
- 6.2 html/ad_html.module \ad_html_display_ad()
- 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) {
$ad_html = "<div class=\"html-advertisement\" id=\"ad-{$ad->aid}\"><div class=\"ad-header\">{$ad->html}</div></div>";
if (variable_get('ad_filter', 0)) {
$ad_html = check_markup($ad_html, $ad->format, FALSE);
}
return $ad_html;
}