You are here

function pmnote_uninstall in Drupal PM (Project Management) 8

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

Implements hook_uninstall().

File

pmnote/pmnote.install, line 39
Functions for the PM Note module.

Code

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

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

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