You are here

function elysia_cron_uninstall in Elysia Cron 7.2

Same name and namespace in other branches
  1. 5.2 elysia_cron.install \elysia_cron_uninstall()
  2. 5 elysia_cron.install \elysia_cron_uninstall()
  3. 6.2 elysia_cron.install \elysia_cron_uninstall()
  4. 6 elysia_cron.install \elysia_cron_uninstall()
  5. 7 elysia_cron.install \elysia_cron_uninstall()

Implements hook_uninstall().

File

./elysia_cron.install, line 146
Install, update and uninstall functions for the elysia_cron module.

Code

function elysia_cron_uninstall() {
  $variables = db_select('variable', 'v')
    ->fields('v', array(
    'name',
  ))
    ->condition('v.name', 'elysia_cron_%', 'LIKE')
    ->execute()
    ->fetchCol();
  foreach ($variables as $name) {
    variable_del($name);
  }
}