You are here

function clients_drupal_clients_connection_load in Web Service Clients 6

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

Implementation of hook_clients_connection_load

File

backends/clients_drupal/clients_drupal.module, line 263
Drupal Services plugin for Clients module @author Django Beatty - adub

Code

function clients_drupal_clients_connection_load(&$connection) {
  if ($connection->type == variable_get('clients_drupal_type', 'Drupal Services')) {
    $connection->configuration['password'] = clients_drupal_decrypt($connection->configuration['password']);

    // or ***
    $connection->operations = l(t('Edit'), 'admin/settings/clients/connections/drupal/' . $connection->cid . '/edit') . ' | ' . l(t('Delete'), 'admin/settings/clients/connections/' . $connection->cid . '/delete');
  }
}