You are here

function jalalidate_handler_field_date::options_form in PersianTools 7

Default options form provides the label widget that all fields should have.

Overrides views_handler_field_date::options_form

File

includes/jalalidate_handler_field_date.inc, line 15
A custom two-part date field handler for Views.

Class

jalalidate_handler_field_date
A handler to display dates in two different formats, based on an offset from the current time.

Code

function options_form(&$form, &$form_state) {
  parent::options_form($form, $form_state);
  $form['date_format']['#options']['jalalidate_custom'] = t('Jalali format');
}