You are here

function commentformsettings_uninstall in Node and Comments Form Settings 7.3

Same name and namespace in other branches
  1. 6.3 commentformsettings/commentformsettings.install \commentformsettings_uninstall()
  2. 6.2 commentformsettings/commentformsettings.install \commentformsettings_uninstall()
  3. 7.2 commentformsettings/commentformsettings.install \commentformsettings_uninstall()

Implements hook_uninstall().

Remove the variables this module created.

File

commentformsettings/commentformsettings.install, line 24
Install, update and uninstall functions for the commentformsettings module.

Code

function commentformsettings_uninstall() {

  // Remove all variables we created.
  $variables = db_query('SELECT name FROM {variable} WHERE name LIKE :name', array(
    ':name' => 'commentformsettings%%',
  ));
  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();
}