function commerce_reports_handler_sort_date::options_form in Commerce Reporting 7.4
Basic options for all sort criteria
Overrides views_handler_sort_date::options_form
File
- includes/
views/ handlers/ commerce_reports_handler_sort_date.inc, line 13 - Definition of commerce_reports_handler_sort_date.
Class
- commerce_reports_handler_sort_date
- Extends views_handler_sort_date to add Week granularity
Code
function options_form(&$form, &$form_state) {
parent::options_form($form, $form_state);
$form['granularity']['#options']['week'] = t('Week');
}