You are here

function commerce_reports_form_views_exposed_form_alter in Commerce Reporting 7.4

Same name and namespace in other branches
  1. 7 commerce_reports.module \commerce_reports_form_views_exposed_form_alter()
  2. 7.3 commerce_reports.module \commerce_reports_form_views_exposed_form_alter()

Implements hook_form_alter().

Changes the appearance of the exposed form of the sales data report.

File

./commerce_reports.module, line 183
Module file for Commerce Reports.

Code

function commerce_reports_form_views_exposed_form_alter(&$form, &$form_state, $form_id) {
  if ($form['#id'] == 'views-exposed-form-commerce-reports-sales-page') {
    $form['granularity']['#description'] = t('Large daily reports may take a long time to display.');
    $form['state']['#description'] = t('Only orders with selected statuses will be included in the report.');
  }
}