You are here

public function DeployServiceRest::configForm in Deploy - Content Staging 7.3

Same name and namespace in other branches
  1. 7.2 includes/DeployServiceRest.inc \DeployServiceRest::configForm()

Configuration form.

Parameters

array $form_state: The complete form state.

Overrides DeployService::configForm

File

includes/DeployServiceRest.inc, line 88
Implementation of a REST based client for deploying entities.

Class

DeployServiceRest
Base class for REST-based service plugins.

Code

public function configForm(&$form_state) {
  return array(
    'url' => array(
      '#type' => 'textfield',
      '#title' => t('Endpoint URL'),
      '#description' => t('Enter endpoint URL. Example: %url', array(
        '%url' => 'http://example.com/services/rest',
      )),
      '#default_value' => $this->config['url'],
    ),
    'timeout' => array(
      '#type' => 'textfield',
      '#title' => t('Timeout in seconds'),
      '#description' => t('A float representing the maximum number of seconds the function call may take. The default is 30 seconds. Note: Change for large data transfers only.'),
      '#default_value' => !empty($this->config['timeout']) ? $this->config['timeout'] : 30.0,
    ),
  );
}