You are here

function pmexpense_uninstall in Drupal PM (Project Management) 7.3

Same name and namespace in other branches
  1. 8 pmexpense/pmexpense.install \pmexpense_uninstall()
  2. 7 pmexpense/pmexpense.install \pmexpense_uninstall()
  3. 7.2 pmexpense/pmexpense.install \pmexpense_uninstall()

Implements hook_uninstall().

File

pmexpense/pmexpense.install, line 39
Installation file for pmexpense module.

Code

function pmexpense_uninstall() {
  module_load_include('inc', 'pm', 'includes/pm.install');
  $module = 'pmexpense';

  // Delete items created by his module.
  pm_uninstall_variables($module);
  pm_uninstall_fields($module);

  // Set standardised message.
  pm_uninstall_message($module, 'expenses');
}