function hook_commerce_invoice_statuses_alter in Commerce Invoice 7.2
Allows modules to alter the list of available Commerce Invoice statuses.
Parameters
array $statuses: An array of commerce invoice statues.
File
- ./
commerce_invoice.api.php, line 16 - Documentation for the commerce_invoice module.
Code
function hook_commerce_invoice_statuses_alter(&$statuses) {
// Remove a status.
unset($statuses[Invoice::STATUS_REFUND_PENDING]);
// Add a status.
$statuses['past_due'] = t('Past due');
}