You are here

feeds_youtube.install in Feeds: YouTube Parser 7.3

Handles actions upon enabling and disabling the module.

File

feeds_youtube.install
View source
<?php

/**
 * @file
 * Handles actions upon enabling and disabling the module.
 */

/**
 * Implements hook_enable().
 */
function feeds_youtube_enable() {

  // Clear the cache to display in Feeds as available plugin.
  cache_clear_all('plugins:feeds:plugins', 'cache');
}

/**
 * Implements hook_disable().
 */
function feeds_youtube_disable() {

  // Clear the cache to display in Feeds as available plugin.
  cache_clear_all('plugins:feeds:plugins', 'cache');
}

/**
 * Implements hook_install().
 */
function feeds_youtube_install() {
  db_query("UPDATE {system} SET weight = 999 WHERE name = 'feeds_youtube'");
}

/**
 * Implements hook_uninstall().
 */
function feeds_youtube_uninstall() {
  variable_del('google_oauth_api_key');
  variable_del('google_oauth_client_id');
  variable_del('google_oauth_client_secret');
  variable_del('feeds_youtube_api_settings');
}