You are here

function nodeformsettings_uninstall in Node and Comments Form Settings 7.3

Same name and namespace in other branches
  1. 6.3 nodeformsettings.install \nodeformsettings_uninstall()
  2. 6 nodeformsettings.install \nodeformsettings_uninstall()
  3. 6.2 nodeformsettings.install \nodeformsettings_uninstall()
  4. 7.2 nodeformsettings.install \nodeformsettings_uninstall()

Implements hook_uninstall().

Remove the variables this module created.

File

./nodeformsettings.install, line 33
Install, update and uninstall functions for the nodeformsettings module.

Code

function nodeformsettings_uninstall() {

  // Remove all variables we created.
  $variables = db_query('SELECT name FROM {variable} WHERE name LIKE :name', array(
    ':name' => 'nodeformsettings%%',
  ));
  foreach ($variables as $variable) {
    variable_del($variable->name);
  }

  // @todo update_sql has been removed. Use the database API for any schema or data changes.
  array();
}