You are here

function pmtask_uninstall in Drupal PM (Project Management) 8

Same name and namespace in other branches
  1. 7.3 pmtask/pmtask.install \pmtask_uninstall()
  2. 7 pmtask/pmtask.install \pmtask_uninstall()
  3. 7.2 pmtask/pmtask.install \pmtask_uninstall()

Implements hook_uninstall().

File

pmtask/pmtask.install, line 40
Install, disable, uninstall and update functions for pmtask module.

Code

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

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

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