You are here

function ad_text_display_prepare in Advertisement 6.3

Same name and namespace in other branches
  1. 5.2 text/ad_text.module \ad_text_display_prepare()
  2. 5 text/ad_text.module \ad_text_display_prepare()
  3. 6 text/ad_text.module \ad_text_display_prepare()
  4. 6.2 text/ad_text.module \ad_text_display_prepare()
  5. 7 text/ad_text.module \ad_text_display_prepare()

Strip illegal characters, apply input filters, then encode the rest UTF-8.

2 calls to ad_text_display_prepare()
ad_text_adapi in text/ad_text.module
Implementation of hook_adapi().
theme_ad_text_ad in text/ad_text.module
Return a themed ad of type ad_text.

File

text/ad_text.module, line 71
Enhances the ad module to support static text ads.

Code

function ad_text_display_prepare($string, $format) {
  $string = preg_replace("/[\\b\f\n\r\t]/", ' ', $string);
  $string = check_markup($string, $format, FALSE);
  return $string;
}