You are here

class DatePopupTimepicker in Date Popup Timepicker 7

Class DatePopupTimepicker.

Hierarchy

Expanded class hierarchy of DatePopupTimepicker

File

includes/date_popup_timepicker.inc, line 117
Interface and base class for timepicker plugins.

View source
class DatePopupTimepicker implements DatePopupTimepickerInterface {

  /**
   * {@inheritdoc}
   */
  public function processElement(array $element, array &$form_state, array $form) {
    return $element;
  }

  /**
   * {@inheritdoc}
   */
  public function librariesInfo() {
    return array();
  }

  /**
   * {@inheritdoc}
   */
  public function fieldSettingsForm(array $form, array $context, array $settings = array()) {
    return array(
      'timepicker_options' => array(),
    );
  }

  /**
   * {@inheritdoc}
   */
  public function fieldSettingsFormValidate(array &$element, array &$values, array &$form, array &$form_state) {

    // Do nothing.
  }

  /**
   * {@inheritdoc}
   */
  public function fieldSettingsFormSubmit(array &$element, array &$values, array &$form, array &$form_state) {

    // Do nothing.
  }

  /**
   * {@inheritdoc}
   */
  public function processFieldSettings(array $settings, array $element, array &$form_state, array $form) {
    return isset($settings['timepicker_options']) ? $settings['timepicker_options'] : array();
  }

}

Members

Namesort descending Modifiers Type Description Overrides
DatePopupTimepicker::fieldSettingsForm public function Define field settings form. Overrides DatePopupTimepickerInterface::fieldSettingsForm 1
DatePopupTimepicker::fieldSettingsFormSubmit public function Field Settings Form submit callback. Overrides DatePopupTimepickerInterface::fieldSettingsFormSubmit 1
DatePopupTimepicker::fieldSettingsFormValidate public function Field Settings Form validate callback. Overrides DatePopupTimepickerInterface::fieldSettingsFormValidate 1
DatePopupTimepicker::librariesInfo public function Library definition for libraries module. Overrides DatePopupTimepickerInterface::librariesInfo 1
DatePopupTimepicker::processElement public function Element process callback. Overrides DatePopupTimepickerInterface::processElement 1
DatePopupTimepicker::processFieldSettings public function Process field settings set in UI for further use in #timepicker options. Overrides DatePopupTimepickerInterface::processFieldSettings 1