You are here

function clients_connection_save in Web Service Clients 7

Same name and namespace in other branches
  1. 6 clients.module \clients_connection_save()
1 call to clients_connection_save()
clients_flickr_add_submit_handler in backends/clients_flickr/clients_flickr.module
Submit handler

File

./clients.module, line 548
Clients module - handles keys and service connections and provides an API for clients

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');
}