function wshybridfield_field_formatter_settings_form in Web Service Data 7
Implements hook_field_formatter_settings_form().
File
- modules/
wshybridfield/ wshybridfield.module, line 133
Code
function wshybridfield_field_formatter_settings_form($field, $instance, $view_mode, $form, &$form_state) {
$display = $instance['display'][$view_mode];
$settings = $display['settings'];
$element['wsprocessor'] = array(
'#type' => 'select',
'#title' => t('Web Service Processor'),
'#description' => t('The web service processor to parse the data'),
'#options' => wsconfig_get_form_processors(),
'#default_value' => isset($settings['wsprocessor']) ? $settings['wsprocessor'] : '',
'#required' => TRUE,
);
return $element;
}