You are here

function pmticket_uninstall in Drupal PM (Project Management) 8

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

Implements hook_uninstall().

File

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

Code

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

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

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