function ad_link_nofollow in Advertisement 6.2
Same name and namespace in other branches
- 5.2 ad.module \ad_link_nofollow()
- 5 ad.module \ad_link_nofollow()
- 6 ad.module \ad_link_nofollow()
- 7 ad.module \ad_link_nofollow()
Ad API Helper Function: Append rel="nofollow" if globally enabled.
1 call to ad_link_nofollow()
- ad_link_attributes in ./
ad.module - Ad API Helper Function: Append all necessary attributes to <a> tags.
2 string references to 'ad_link_nofollow'
- ad_admin_configure_settings in ./
ad.admin.inc - Display a form for the ad module settings.
- ad_admin_configure_settings_submit in ./
ad.admin.inc - Save updated values from settings form.
File
- ./
ad.module, line 312
Code
function ad_link_nofollow() {
if (variable_get('ad_link_nofollow', 0)) {
$nofollow = array(
'rel' => 'nofollow',
);
}
else {
$nofollow = array();
}
return $nofollow;
}