You are here

function clients_drupal_clients_arguments in Web Service Clients 7

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

Implementation of hook_clients_arguments

File

backends/clients_drupal/clients_drupal.module, line 181
Drupal Services plugin for Clients module

Code

function clients_drupal_clients_arguments($connection) {

  //  $connection = clients_connection_load((int)$source['connection']);
  if ($connection->type == 'drupal_services') {
    $arg = new stdClass();
    $arg->name = 'argument';
    $arg->title = t('Argument');
    $arg->help = t('Argument to pass to resource');
    return array(
      $arg,
    );
  }
}