You are here

mail_debugger.install in Mail Debugger 7.3

Same filename and directory in other branches
  1. 7 mail_debugger.install
  2. 7.2 mail_debugger.install

File

mail_debugger.install
View source
<?php

/**
 * Implement hook_uninstall()
 */
function mail_debugger_uninstall() {
  user_variable_del('mail_debugger_default_values');
  user_variable_del('mail_debugger_default_tab');
}

/**
 * Remove unused field from the 1.x version
 */
function mail_debugger_update_7200() {
  user_variable_del('mail_debugger_user_uid');
}

/**
 * Enable modules that might be moved without notice
 */
function mail_debugger_update_7201() {

  // Enable attached modules only when upgrading from versions that include
  // this functionality by default.
  user_variable_del('mail_debugger_user_uid');
  user_variable_del('mail_debugger_user_mail');
  user_variable_del('mail_debugger_user_type');
  user_variable_del('mail_debugger_custom_to');
  user_variable_del('mail_debugger_custom_subject');
  user_variable_del('mail_debugger_custom_body');
  user_variable_del('mail_debugger_default_tab');
  module_enable(array(
    'mail_debugger_common',
  ));
}

Functions

Namesort descending Description
mail_debugger_uninstall Implement hook_uninstall()
mail_debugger_update_7200 Remove unused field from the 1.x version
mail_debugger_update_7201 Enable modules that might be moved without notice