You are here

function calendar_islamic_formatter in Calendar Systems 6.2

Islamic calendar date formatter callback.

Parameters

$timestamp: Unix timestamp to be formatted. The proper timezone value has been added by the native format_date().

$type: The format to use. Can be "small", "medium" or "large" for the preconfigured date formats. If "custom" is specified, then $format is required as well.

$format: PHP date() function format string.

$langcode: Optional language code to translate to a language other than the default.

$calendar: A copy of calendar information.

Return value

The formatted date or FALSE otherwise.

See also

format_date()

1 string reference to 'calendar_islamic_formatter'
calendar_islamic_calendar_info in calendars/calendar_islamic/calendar_islamic.module
Implements hook_calendar_info().

File

calendars/calendar_islamic/calendar_islamic.module, line 72
Implements necessary hooks of Calendar Systems module, to support Islamic Calendar.

Code

function calendar_islamic_formatter($timestamp, $type, $format, $langcode, $calendar) {

  // TODO: IMPLEMENT!
  return FALSE;
}