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