You are here

public function ServicesClientConnectionRestServer::configForm in Services Client 7

Same name and namespace in other branches
  1. 7.2 services_client_connection/plugins/ServicesClientConnectionRestServer.inc \ServicesClientConnectionRestServer::configForm()

Implements configForm().

Overrides ServicesClientConnectionPlugin::configForm

File

services_client_connection/plugins/ServicesClientConnectionRestServer.inc, line 52

Class

ServicesClientConnectionRestServer
@file

Code

public function configForm(&$form, &$form_state) {
  $form['request_formatter'] = array(
    '#type' => 'select',
    '#title' => t('Request formatter'),
    '#options' => ServicesClientConnectionRestServerFormatter::getFormatters(),
    '#default_value' => isset($this->config['request_formatter']) ? $this->config['request_formatter'] : '',
  );
  $form['response_parser'] = array(
    '#type' => 'select',
    '#title' => t('Response parser'),
    '#options' => ServicesClientConnectionRestServerParser::getParsers(),
    '#default_value' => isset($this->config['response_parser']) ? $this->config['response_parser'] : '',
  );
}