You are here

function emfield_uninstall in Embedded Media Field 6.2

Same name and namespace in other branches
  1. 6.3 emfield.install \emfield_uninstall()
  2. 6 emfield.install \emfield_uninstall()

Implementation of hook_uninstall().

File

./emfield.install, line 25
This is the emfield.module's install, configuration, and removal file.

Code

function emfield_uninstall() {
  drupal_uninstall_schema('emfield');

  // Remove all variables that live in our namespace.
  $result = db_query("SELECT name FROM {variable} WHERE name LIKE 'emfield_%'");
  while ($row = db_fetch_object($result)) {
    variable_del($row->name);
  }
  drupal_set_message(t('Embedded Media Field has been uninstalled.'));
}