You are here

protected_submissions.install in Protected Submissions 7

Same filename and directory in other branches
  1. 8 protected_submissions.install

Install, update and uninstall functions for the protected_submissions module.

File

protected_submissions.install
View source
<?php

/**
 * @file
 * Install, update and uninstall functions for the protected_submissions
 * module.
 */

/**
 * Implements hook_uninstall().
 */
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.'));
}

Functions