You are here

function nodeformsettings_uninstall in Node and Comments Form Settings 6

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

Implementation of hook_uninstall(). Remove the variables this module created.

File

./nodeformsettings.install, line 17

Code

function nodeformsettings_uninstall() {

  // remove all variables we created
  $variables = db_query("SELECT name FROM {variable} WHERE name LIKE 'nodeformsettings%%'");
  while ($variable = db_fetch_object($variables)) {
    variable_del($variable->name);
  }
  update_sql("DELETE FROM {system} WHERE name like '%nodeformsettings'");
}