You are here

function hijri_handler_hijri_created::options_form in Hijri 7

Same name and namespace in other branches
  1. 8 views/hijri_handler_hijri_created.inc \hijri_handler_hijri_created::options_form()

Here are the form options.

Overrides views_handler_field_date::options_form

File

views/hijri_handler_hijri_created.inc, line 15
Definition of hijri handler created.

Class

hijri_handler_hijri_created
Hijri Created field displays the the node Created in hijri format.

Code

function options_form(&$form, &$form_state) {
  parent::options_form($form, $form_state);
  $form['date_format']['#options']['hijri_full'] = t('Hijri full format: @date', array(
    '@date' => hijri_format_date(time(), 'full'),
  ));
  $form['date_format']['#options']['hijri_long'] = t('Hijri long format: @date', array(
    '@date' => hijri_format_date(time(), 'long'),
  ));
  $form['date_format']['#options']['hijri_medium'] = t('Hijri medium format: @date', array(
    '@date' => hijri_format_date(time(), 'medium'),
  ));
  $form['date_format']['#options']['hijri_short'] = t('Hijri short format: @date', array(
    '@date' => hijri_format_date(time(), 'short'),
  ));
}