function _archive_validate_year in Archive 5
Check if given year is valid for a Drupal archive. Max/min values defined by limitations in POSIX timestamp.
Parameters
$year: The year to check
Return value
TRUE or FALSE
4 calls to _archive_validate_year()
- theme_archive_navigation in ./
archive.inc - Theme the archive navigation with years, months and dates by default.
- _archive_date in ./
archive.module - Parses the current URL and populates an archive date object with the selected date information.
- _archive_url in ./
archive.module - Generate an archive URL based on the $y, $m and $d provided, falling back on the $date properties if an invalid date is specified.
- _archive_validate_day in ./
archive.module - Check if given year, month and date combination is valid for a Drupal archive.
File
- ./
archive.module, line 78
Code
function _archive_validate_year($year) {
return 1970 <= $year && $year <= 2038;
}