You are here

function commerce_email_uninstall in Commerce Email 7

Implements hook_uninstall().

File

./commerce_email.install, line 101
Install file for Commerce Email Sets default emails and settings

Code

function commerce_email_uninstall() {
  variable_del('admin_email');
  $languages = language_list('enabled');
  foreach ($languages[1] as $k => $lang) {
    variable_del('commerce_email_order_template_' . $k);
    variable_del('commerce_email_account_template_' . $k);
    variable_del('commerce_email_admin_order_template_' . $k);
  }
  variable_del('commerce_email_order_template_' . LANGUAGE_NONE);
  variable_del('commerce_email_account_template_' . LANGUAGE_NONE);
  variable_del('commerce_email_admin_order_template_' . LANGUAGE_NONE);
}