flickrapi.install in Flickr API 6
Same filename and directory in other branches
Update functions for the FlickrAPI module.
File
flickrapi.installView source
<?php
/**
* @file
* Update functions for the FlickrAPI module.
*/
/**
* Implements hook_uninstall().
* Clean up old variables.
*/
function flickrapi_uninstall() {
variable_del('flickrapi_cache_path');
variable_del('flickrapi_api_key');
variable_del('flickrapi_api_secret');
variable_del('flickrapi_cache_duration');
variable_del('flickrapi_default_nsid');
}
/**
* Rename the variable 'flickrcachepath' to 'flickrapi_cache_path'
*/
function flickrapi_update_6100() {
variable_set('flickrapi_cache_path', variable_get('flickrcachepath', '/tmp'));
variable_del('flickrcachepath');
}
Functions
Name | Description |
---|---|
flickrapi_uninstall | Implements hook_uninstall(). Clean up old variables. |
flickrapi_update_6100 | Rename the variable 'flickrcachepath' to 'flickrapi_cache_path' |