You are here

feeds_youtube.install in Feeds: YouTube Parser 7.2

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'");
}

Functions