You are here

function clients_connection_save in Web Service Clients 6

Same name and namespace in other branches
  1. 7 clients.module \clients_connection_save()
2 calls to clients_connection_save()
clients_drupal_add_submit_handler in backends/clients_drupal/clients_drupal.module
Submit handler
clients_flickr_add_submit_handler in backends/clients_flickr/clients_flickr.module
Submit handler

File

./clients.module, line 554
Clients module - handles keys and service connections and provides an API for clients @author Django Beatty - adub

Code

function clients_connection_save($values) {
  $values = module_invoke_all('clients_connection_save', $values);
  if ($resultbase = drupal_write_record('clients_connections', $values)) {

    // @todo add watchdog
    drupal_set_message('Added connection');
  }
  else {
    drupal_set_message('Problem adding connection - drupal_write_record() result: ' . $resultbase);
  }
  drupal_goto('admin/settings/clients/connections');
}