feeds_youtube.install in Feeds: YouTube Parser 7.3
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'");
}
/**
* 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');
}
Functions
Name | Description |
---|---|
feeds_youtube_disable | Implements hook_disable(). |
feeds_youtube_enable | Implements hook_enable(). |
feeds_youtube_install | Implements hook_install(). |
feeds_youtube_uninstall | Implements hook_uninstall(). |