You are here

function commerce_invoice_email_enable in Commerce Invoice 7

Implements hook_enable().

File

modules/email/commerce_invoice_email.install, line 7

Code

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();
}