You are here

function commerce_reports_handler_field_date::granularityOptions in Commerce Reporting 7.3

3 calls to commerce_reports_handler_field_date::granularityOptions()
commerce_reports_handler_field_date::accept_exposed_input in includes/views/commerce_reports_handler_field_date.inc
Take input from exposed handlers and assign to this handler, if necessary.
commerce_reports_handler_field_date::exposed_form in includes/views/commerce_reports_handler_field_date.inc
Render our chunk of the exposed handler form when selecting.
commerce_reports_handler_field_date::options_form in includes/views/commerce_reports_handler_field_date.inc
Default options form provides the label widget that all fields should have.

File

includes/views/commerce_reports_handler_field_date.inc, line 168
Views field handler for the created date on orders.

Class

commerce_reports_handler_field_date
@file Views field handler for the created date on orders.

Code

function granularityOptions() {
  static $cache;
  if (empty($cache)) {
    $cache = array();
    foreach ($this->granularities as $format => $data) {
      $cache[$format] = $data['label'];
    }
  }
  return $cache;
}