You are here

function _wsclient_ui_global_header_parameter_row in Web service client 7

Generates a row in the global parameter table.

1 call to _wsclient_ui_global_header_parameter_row()
wsclient_service_form in wsclient_ui/wsclient_ui.inc
Provides a form to add, edit and clone web service descriptions.

File

wsclient_ui/wsclient_ui.inc, line 690
WSClient UI - implements service description management and configuration screens.

Code

function _wsclient_ui_global_header_parameter_row($service, $types, $name = '', $info = array()) {
  if (isset($name)) {
    $parameter['data_type'] = array(
      '#type' => 'select',
      '#options' => array(
        0 => '--',
      ) + $types,
      '#default_value' => $name,
    );
    $parameter['name_space'] = array(
      '#type' => 'textfield',
      '#size' => 255,
      '#default_value' => isset($info['name space url']) ? $info['name space url'] : '',
    );
    return $parameter;
  }
}