You are here

function clients_flickr_install in Web Service Clients 7

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

Implementation of hook_install().

File

backends/clients_flickr/clients_flickr.install, line 12
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'));
}