You are here

function _calendar_systems_get_format_part in Calendar Systems 8

Same name and namespace in other branches
  1. 7 calendar_systems.helpers.inc \_calendar_systems_get_format_part()
  2. 7.2 calendar_systems.helpers.inc \_calendar_systems_get_format_part()

Parameters

$format:

Return value

array

1 call to _calendar_systems_get_format_part()
calendar_systems_date_validate in ./calendar_systems.module
Element validation callback for date fields.

File

./calendar_systems.helpers.inc, line 72

Code

function _calendar_systems_get_format_part($part, $format) {
  $granularity = _calendar_systems_get_granularity_from_format($format);
  $granularity = _calendar_systems_get_granularity_part($part, $granularity);
  return date_limit_format($format, $granularity);
}