You are here

function node_registration_uninstall in Node registration 7

Implements hook_uninstall().

Delete variables.

File

./node_registration.install, line 13
Install, uninstall, enable and disable hooks and schema.

Code

function node_registration_uninstall() {

  // Delete variables.
  $vars = db_query('SELECT name FROM {variable} WHERE name LIKE ?', array(
    'node\\_registration\\_%',
  ));
  foreach ($vars as $var) {
    watchdog('registration', 'deleting var: @var', array(
      '@var' => $var->name,
    ));
    variable_del($var->name);
  }
}