You are here

function pmtimetracking_uninstall in Drupal PM (Project Management) 8

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

Implements hook_uninstall().

File

pmtimetracking/pmtimetracking.install, line 39
Install functions for PM Timetracking.

Code

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

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

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