You are here

function clients_flickr_install in Web Service Clients 6

Same name and namespace in other branches
  1. 7 backends/clients_flickr/clients_flickr.install \clients_flickr_install()

Implementation of hook_install().

File

backends/clients_flickr/clients_flickr.install, line 13
Sets variables and deletes connections on uninstall @todo delete resources on uninstall

Code

function clients_flickr_install() {
  $weight = (int) db_result(db_query("SELECT weight FROM {system} WHERE name = 'clients'"));
  db_query("UPDATE {system} SET weight = %d WHERE name = 'clients_flickr'", $weight + 1);
  variable_set('clients_flickr_type', 'Flickr');
  drupal_set_message(t('Clients Flickr backend installed'));
}