You are here

function hijri_handler_hijri_created::options_form in Hijri 8

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

File

views/hijri_handler_hijri_created.inc, line 12
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'),
  ));
}