You are here

function seotools_google_analytics_reports_profile_id in Drupal SEO Tools 6

File

plugins/seotools.presets.inc, line 219

Code

function seotools_google_analytics_reports_profile_id() {
  $setting = array();
  $setting['title'] = 'Google Analytics Profile';
  if (variable_get('google_analytics_reports_profile_id', 0) != 0) {
    $setting['value'] = 'Your google analytics account has been set.';

    //$setting['value'] = variable_get('google_analytics_reports_profile_id', 0);
    $setting['severity'] = 0;
  }
  else {
    $setting['value'] = 'You have not set your google analytics account. Go to ' . l('admin/settings/google-analytics-reports', 'admin/settings/google-analytics-reports') . ' to set up your account.';
    $setting['severity'] = REQUIREMENT_ERROR;
  }
  return $setting;
}