function adsense_filter in Google AdSense integration 5
Same name and namespace in other branches
- 5.3 adsense.module \adsense_filter()
- 5.2 adsense.module \adsense_filter()
- 6 adsense.module \adsense_filter()
Implementation of hook_filter().
File
- ./
adsense.module, line 1308
Code
function adsense_filter($op, $delta = 0, $format = -1, $text = '') {
switch ($op) {
case 'no cache':
return TRUE;
case 'list':
return array(
0 => t('AdSense tag'),
);
case 'description':
return t('Substitutes an AdSense special tag with an ad.');
case 'prepare':
return $text;
case 'process':
return _adsense_process_tags($text);
}
}