function clients_connection_edit in Web Service Clients 6
Same name and namespace in other branches
- 7 clients.connection.admin.inc \clients_connection_edit()
2 calls to clients_connection_edit()
- clients_drupal_edit_submit_handler in backends/
clients_drupal/ clients_drupal.module - Submit handler
- clients_flickr_edit_submit_handler in backends/
clients_flickr/ clients_flickr.module - Submit handler
File
- ./
clients.module, line 540 - Clients module - handles keys and service connections and provides an API for clients @author Django Beatty - adub
Code
function clients_connection_edit($values) {
$values = module_invoke_all('clients_connection_edit', $values);
// by ref seems not working here...? - needs sorting
if ($resultbase = drupal_write_record('clients_connections', $values, 'cid')) {
// @todo add watchdog
drupal_set_message('Edited connection');
}
else {
drupal_set_message('Problem editing connection - drupal_write_record() result: ' . $resultbase);
}
drupal_goto('admin/settings/clients/connections');
}