function ga_stats_drush_command in Google Analytics Statistics 7.2
Same name and namespace in other branches
- 7 ga_stats.drush.inc \ga_stats_drush_command()
Implements hook_drush_command().
File
- ./
ga_stats.drush.inc, line 9
Code
function ga_stats_drush_command() {
$items = array();
$items['ga-stats-update'] = array(
'description' => 'Manually trigger a retrieval of Google Analytics data.',
);
$items['ga-stats-generate'] = array(
'description' => 'Generate "scraped" Google Analytics statistics.',
'options' => array(
'metric' => 'Specify the GA metric to populate. Defaults to "pageviews".',
'timeframe' => 'Special the time range from running the command backwards. Defaults to "monthly".',
'range' => 'Specify the upper limit for statistics counts. Defaults to 1000.',
),
);
return $items;
}