You are here

function calendar_jalali_calendar_info in Calendar Systems 6.2

Implements hook_calendar_info().

File

calendars/calendar_jalali/calendar_jalali.module, line 13
Implements necessary hooks & helpers to support Jalali Calendar.

Code

function calendar_jalali_calendar_info() {
  $calendar = array();

  // An array of calendar information,
  // keyed by the calendar identifier.
  $calendar['jalali'] = array(
    // Calendar name:
    'name' => t('Jalali (Solar Hijri)'),
    // Administration form callback:
    'config callback' => 'calendar_jalali_admin_form',
    // Date formatter callback:
    'format callback' => 'calendar_jalali_formatter',
    // Calendar convert callbacks:
    'convert callbacks' => array(
      'from gregorian' => 'calendar_jalali_convert',
      'to gregorian' => 'calendar_jalali_convert_reverse',
    ),
    // Callback calendar month days:
    'month days callback' => 'calendar_jalali_month_days',
  );
  return $calendar;
}