You are here

function clients_drupal_install in Web Service Clients 6

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

Implementation of hook_install().

File

backends/clients_drupal/clients_drupal.install, line 13
Sets system variables and deletes connections on uninstall @todo Delete resources on uninstall

Code

function clients_drupal_install() {
  $weight = (int) db_result(db_query("SELECT weight FROM {system} WHERE name = 'clients'"));
  db_query("UPDATE {system} SET weight = %d WHERE name = 'clients_drupal'", $weight + 1);
  variable_set('clients_drupal_type', 'Drupal Services');
  drupal_set_message(t('Clients module - please visit the status report (admin/reports/status) for initial setup tasks to complete installation.'));
}