You are here

flickrapi.install in Flickr API 6

Same filename and directory in other branches
  1. 7.2 flickrapi.install
  2. 7 flickrapi.install

Update functions for the FlickrAPI module.

File

flickrapi.install
View 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

Namesort descending Description
flickrapi_uninstall Implements hook_uninstall(). Clean up old variables.
flickrapi_update_6100 Rename the variable 'flickrcachepath' to 'flickrapi_cache_path'