You are here

public function ServicesClientConnectionCurlRequest::configForm in Services Client 7

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

Configuration form allow to set request timeouts

Overrides ServicesClientConnectionPlugin::configForm

File

services_client_connection/plugins/ServicesClientConnectionCurlRequest.inc, line 13
Make requests via cURL

Class

ServicesClientConnectionCurlRequest
@file Make requests via cURL

Code

public function configForm(&$form, &$form_state) {
  $form['request_timeout'] = array(
    '#type' => 'textfield',
    '#title' => t('Request timeout'),
    '#default_value' => isset($this->config['request_timeout']) ? $this->config['request_timeout'] : 5,
    '#description' => t('Enter request timeout after which it will be terminated.'),
  );
  $form['ssl_verifypeer_skip'] = array(
    '#type' => 'checkbox',
    '#title' => t('Skip SSL Cert verification'),
    '#default_value' => isset($this->config['ssl_verifypeer_skip']) ? $this->config['ssl_verifypeer_skip'] : FALSE,
    '#description' => t("Don't verify remote certificate."),
  );
}