feeds_youtube.install in Feeds: YouTube Parser 7.2
Same filename and directory in other branches
Handles actions upon enabling and disabling the module.
File
feeds_youtube.installView 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
Name | Description |
---|---|
feeds_youtube_disable | Implements hook_disable(). |
feeds_youtube_enable | Implements hook_enable(). |
feeds_youtube_install | Implements hook_install(). |