You are here

function flickr_install in Flickr 7

Same name and namespace in other branches
  1. 5 flickr.install \flickr_install()
  2. 6 flickr.install \flickr_install()

Implements hook_install().

File

./flickr.install, line 10
The Flickr database schema and uninstall hook.

Code

function flickr_install() {
  if (module_exists('colorbox')) {
    variable_set('flickr_class', 'colorbox');
    variable_set('flickr_rel', 'gallery-all');
    variable_set('colorbox_inline', 1);
  }
  elseif (module_exists('lightbox2')) {
    variable_set('flickr_rel', 'lightbox[gallery]');
  }
}