function ad_text_display_ad in Advertisement 5
Same name and namespace in other branches
- 5.2 text/ad_text.module \ad_text_display_ad()
- 6.3 text/ad_text.module \ad_text_display_ad()
- 6 text/ad_text.module \ad_text_display_ad()
- 6.2 text/ad_text.module \ad_text_display_ad()
- 7 text/ad_text.module \ad_text_display_ad()
Function used to display the selected ad.
2 calls to ad_text_display_ad()
- ad_text_node_form in text/
ad_text.module - Adapi helper function for displaying a node form.
- ad_text_node_view in text/
ad_text.module
File
- text/
ad_text.module, line 14 - Enhances the ad module to support static text ads.
Code
function ad_text_display_ad($ad) {
return "<div class=\"text-advertisement\" id=\"ad-{$ad->aid}\"><div class=\"ad-header\"><a href=\"{$ad->redirect}/@HOSTID___\"" . ad_link_attributes() . '>' . ad_text_display_prepare($ad->adheader, $ad->format) . "</a></div><div class=\"ad-body\">" . ad_text_display_prepare($ad->adbody, $ad->format) . "</div></div>";
}