commerce_invoice_email.install in Commerce Invoice 7
File
modules/email/commerce_invoice_email.installView source
<?php
/**
* Implements hook_enable().
*/
function commerce_invoice_email_enable() {
// Deactivate default commerce rules to send invoice email
$rules_config = rules_config_load('commerce_invoice_email');
$rules_config->active = FALSE;
$rules_config
->save();
}
/**
* Implements hook_disable().
*/
function commerce_invoice_email_disable() {
// Activate default commerce rules to send invoice email
$rules_config = rules_config_load('commerce_invoice_email');
$rules_config->active = TRUE;
$rules_config
->save();
}
Functions
Name | Description |
---|---|
commerce_invoice_email_disable | Implements hook_disable(). |
commerce_invoice_email_enable | Implements hook_enable(). |