You are here

function pmproject_uninstall in Drupal PM (Project Management) 7.3

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

Implements hook_uninstall().

File

pmproject/pmproject.install, line 41
Installation functions for the Project Management project module.

Code

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

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

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