You are here

function ad_link_nofollow in Advertisement 6.2

Same name and namespace in other branches
  1. 5.2 ad.module \ad_link_nofollow()
  2. 5 ad.module \ad_link_nofollow()
  3. 6 ad.module \ad_link_nofollow()
  4. 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;
}