commerce_reports.install in Commerce Reporting 7.4
Same filename and directory in other branches
Install, update, and uninstall functions for the commerce_reports module.
File
commerce_reports.installView source
<?php
/**
* @file
* Install, update, and uninstall functions for the commerce_reports module.
*/
/**
* Implements hook_reports_install().
*/
function commerce_reports_install() {
// Set default for date format.
variable_set('date_format_commerce_reports', 'l j F o');
}
/**
* Changes the default date format used by Commerce Reporting.
*/
function commerce_reports_update_7300(&$sandbox) {
variable_set('date_format_commerce_reports', 'l j F o');
}
/**
* Flushes caches to ensure Views and Dashboard do not break.
*/
function commerce_reports_update_7400() {
// Just flush 'em all. Updating does this, but this way it shows as a pending
// thing to do, so people don't go "Ah it's broken!"
drupal_flush_all_caches();
}
Functions
Name | Description |
---|---|
commerce_reports_install | Implements hook_reports_install(). |
commerce_reports_update_7300 | Changes the default date format used by Commerce Reporting. |
commerce_reports_update_7400 | Flushes caches to ensure Views and Dashboard do not break. |