You are here

function nicemessages_uninstall in Nice messages 7

Same name and namespace in other branches
  1. 7.2 nicemessages.install \nicemessages_uninstall()

Implements hook_uninstall().

File

./nicemessages.install, line 43
Module install file. Attaching boolean nicemessages_enabled field to user objects.

Code

function nicemessages_uninstall() {
  db_delete('variable')
    ->condition('name', '%nicemessages%', 'LIKE')
    ->execute();
  field_delete_instance('field_user_nicemessages_enabled');
  field_delete_field('field_user_nicemessages_enabled');

  // purge all field information
  field_purge_batch(100);
}