You are here

function _adsense_check_blog in Google AdSense integration 5

1 call to _adsense_check_blog()
adsense_nodeapi in ./adsense.module
Implemenation of hook_nodeapi().

File

./adsense.module, line 1494

Code

function _adsense_check_blog() {

  // Special handling for the path /blog/uid or its aliases
  $path = explode('/', drupal_get_normal_path($_GET['q']));
  if (is_array($path)) {
    if (count($path) == 2) {
      if ($path[0] == 'blog') {
        if (is_numeric($path[1])) {
          return $path[1];
        }
      }
    }
  }
  return false;
}