function commerce_reports_tax_generate in Commerce Reporting 7.4
Same name and namespace in other branches
- 7.3 modules/tax/commerce_reports_tax.module \commerce_reports_tax_generate()
Generate historic tax information.
2 calls to commerce_reports_tax_generate()
- commerce_reports_tax_form_submit_generate in modules/
tax/ commerce_reports_tax.admin.inc - Submit handler that generates a tax report.
- commerce_reports_tax_generate_callback in modules/
tax/ commerce_reports_tax.admin.inc - Callback for tax report generation.
File
- modules/
tax/ commerce_reports_tax.module, line 216 - Module file for Commerce Reports Tax.
Code
function commerce_reports_tax_generate() {
$batch = array(
'title' => t('Generating tax report'),
'operations' => array(
array(
'_commerce_reports_tax_generate',
array(),
),
),
'finished' => '_commerce_reports_tax_finished',
'file' => drupal_get_path('module', 'commerce_reports_tax') . '/commerce_reports_tax.batch.inc',
);
batch_set($batch);
}