You are here

function ga_stats_can_authenticate in Google Analytics Statistics 7

Same name and namespace in other branches
  1. 7.2 ga_stats.install \ga_stats_can_authenticate()

Determine if the user credentials can successfully authenticate against Google.

Return value

bool

1 call to ga_stats_can_authenticate()
ga_stats_requirements in ./ga_stats.install
Implements hook_requirements().

File

./ga_stats.install, line 62

Code

function ga_stats_can_authenticate() {
  require_once 'includes/ga.inc';
  $client = ga_stats_get_client(TRUE);
  return isset($client);
}