commerce_invoice_receipt.install in Commerce Invoice Receipt 7
Same filename and directory in other branches
Commerce Invoice Receipt - Installation file.
File
commerce_invoice_receipt.installView source
<?php
/**
* @file Commerce Invoice Receipt - Installation file.
*/
/**
* Implements hook_install().
*/
function commerce_invoice_receipt_install() {
variable_set('mail_system', array_merge(variable_get('mail_system', array(
'default-system' => 'DefaultMailSystem',
)), array(
'commerce_invoice_receipt' => 'InvoiceMailSystem',
)));
}
/**
* Implements hook_uninstall().
*/
function commerce_invoice_receipt_uninstall() {
$mail_system = variable_get('mail_system', array(
'default-system' => 'DefaultMailSystem',
));
unset($mail_system['commerce_invoice_receipt']);
variable_set('mail_system', $mail_system);
}
Functions
Name | Description |
---|---|
commerce_invoice_receipt_install | Implements hook_install(). |
commerce_invoice_receipt_uninstall | Implements hook_uninstall(). |