You are here

function media_soundcloud_uninstall in Media: SoundCloud 7

Implement hook_uninstall().

File

./media_soundcloud.install, line 18
Install, update and uninstall functions for the Media: SoundCloud module.

Code

function media_soundcloud_uninstall() {

  // Include the variables inc file, else the uninstall fails.
  module_load_include('inc', 'media_soundcloud', 'includes/media_soundcloud.variables');

  // Delete all Soundcloud variables.
  foreach (media_soundcloud_variable_default() as $variable => $value) {
    media_soundcloud_variable_del($variable);
  }
  return array(
    array(
      'success' => TRUE,
      'query' => "Deleted all variables in the Media: SoundCloud namespace.",
    ),
  );
}