You are here

function pmtask_uninstall in Drupal PM (Project Management) 7

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

Implements hook_uninstall().

File

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

Code

function pmtask_uninstall() {
  drupal_uninstall_schema('pmtask');
  db_delete('pmattribute')
    ->condition('domain', array(
    'Task status',
    'Task status search',
    'Task category',
    'Task category search',
    'Task priority',
    'Task priority search',
  ), 'IN')
    ->execute();
}