function statspro_get_period_items in Statistics Pro 6
Same name and namespace in other branches
- 6.2 statspro.module \statspro_get_period_items()
Get items for period selection
Return value
array
3 calls to statspro_get_period_items()
- StatisticsProTestCase::testMainTests in tests/
statspro.test - statspro_overview in ./
statspro.reports.inc - Callback function for overview page
- statspro_settings_form in ./
statspro.module - Form generating function for search_engine_referers settings
File
- ./
statspro.module, line 139 - Main module of Statistcs pro module
Code
function statspro_get_period_items() {
return array(
'today' => t('Today'),
'yesterday' => t('Yesterday'),
'week_current' => t('Week, current'),
'week_last' => t('Week, last'),
'week_last2' => t('Week, before last'),
'month_current' => t('Month, current'),
'month_last' => t('Month, last'),
'month_last3' => t('Month, last 3'),
'month_last6' => t('Month, last 6'),
'quarter_current' => t('Quarter, current'),
'quarter_last' => t('Quarter, last'),
'year_current' => t('Year, current'),
'year_last' => t('Year, last'),
);
}