You are here

function _wsclient_ui_global_parameter_row in Web service client 7

Generates a row in the global parameter table.

1 call to _wsclient_ui_global_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 670
WSClient UI - implements service description management and configuration screens.

Code

function _wsclient_ui_global_parameter_row($service, $types, $name = '', $info = array()) {
  $param_type = 0;
  $multiple = FALSE;
  $parameter['name'] = array(
    '#type' => 'textfield',
    '#size' => 40,
    '#default_value' => $name,
    '#element_validate' => array(
      'wsclient_ui_name_validate',
    ),
  );
  $parameter['default_value'] = array(
    '#type' => 'textfield',
    '#size' => 30,
    '#default_value' => isset($info['default value']) ? $info['default value'] : '',
  );
  return $parameter;
}