You are here

function commerce_reports_form_views_exposed_form_alter in Commerce Reporting 7.3

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

Implements hook_form_alter().

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

File

./commerce_reports.module, line 107

Code

function commerce_reports_form_views_exposed_form_alter(&$form, &$form_state, $form_id) {
  if ($form['#id'] == 'views-exposed-form-commerce-reports-sales-page') {
    drupal_add_css(drupal_get_path('module', 'commerce_reports') . '/commerce_reports.css');
    $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.');
  }
}