function pmperson_uninstall in Drupal PM (Project Management) 8
Same name and namespace in other branches
- 7.3 pmperson/pmperson.install \pmperson_uninstall()
- 7 pmperson/pmperson.install \pmperson_uninstall()
- 7.2 pmperson/pmperson.install \pmperson_uninstall()
Implements hook_uninstall().
File
- pmperson/
pmperson.install, line 32 - Installation and update functions for PM Person module.
Code
function pmperson_uninstall() {
module_load_include('inc', 'pm', 'includes/pm.install');
$module = 'pmperson';
// Delete items created by his module.
pm_uninstall_variables($module);
pm_uninstall_fields($module);
// Set standardised message.
pm_uninstall_message($module, 'user accounts');
}