You are here

function media_youtube_uninstall in Media: YouTube 7

Same name and namespace in other branches
  1. 6 media_youtube.install \media_youtube_uninstall()

Implement hook_uninstall().

File

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

Code

function media_youtube_uninstall() {
  drupal_load('module', 'media_youtube');
  foreach (media_youtube_variable_default() as $variable => $value) {
    media_youtube_variable_del($variable);
  }
  return array(
    array(
      'success' => TRUE,
      'query' => "Deleted all variables in the Media: YouTube namespace.",
    ),
  );
}