You are here

function protected_submissions_uninstall in Protected Submissions 7

Implements hook_uninstall().

File

./protected_submissions.install, line 11
Install, update and uninstall functions for the protected_submissions module.

Code

function protected_submissions_uninstall() {
  $result = db_select('variable', 'v')
    ->fields('v', array(
    'name',
  ))
    ->condition('name', 'protected_submissions%', 'LIKE')
    ->execute();
  foreach ($result as $row) {
    variable_del($row->name);
  }
  drupal_set_message(t('Protected Submissions module has been uninstalled.'));
}