You are here

function pmperson_uninstall in Drupal PM (Project Management) 7.3

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

Implements hook_uninstall().

File

pmperson/pmperson.install, line 32
Installation and update functions for PM Person module.

Code

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

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

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