You are here

function emapi_uninstall in Embedded Media Field 6.3

Implementation of hook_uninstall().

File

emapi/emapi.install, line 25
This is Embedded Media API's installation, configuration, and removal file.

Code

function emapi_uninstall() {
  foreach (emapi_variable_default() as $variable => $value) {
    emapi_variable_del($variable);
  }
  drupal_uninstall_schema('emapi');
  return array(
    array(
      'success' => TRUE,
      'query' => "Deleted all variables in the Embedded Media API namespace and dropped relevant tables.",
    ),
  );
}