public function DatePopupTimepicker::processFieldSettings in Date Popup Timepicker 7
Process field settings set in UI for further use in #timepicker options.
For example settings may be sanitized, translated, etc.
Parameters
array $settings: Timepicked settings saved in field instanc.
array $element: Form API element structure to process.
array $form_state: Form state.
array $form: The whole form definition structure.
Return value
array Processed timepicker options.
Overrides DatePopupTimepickerInterface::processFieldSettings
1 method overrides DatePopupTimepicker::processFieldSettings()
- DatePopupTimepickerTimepicker::processFieldSettings in plugins/
timepicker/ timepicker.inc - Process field settings set in UI for further use in #timepicker options.
File
- includes/
date_popup_timepicker.inc, line 159 - Interface and base class for timepicker plugins.
Class
- DatePopupTimepicker
- Class DatePopupTimepicker.
Code
public function processFieldSettings(array $settings, array $element, array &$form_state, array $form) {
return isset($settings['timepicker_options']) ? $settings['timepicker_options'] : array();
}