function _archive_validate_month in Archive 5
Check if given month is valid.
Parameters
$month: The month to check
Return value
TRUE or FALSE
4 calls to _archive_validate_month()
- 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 90
Code
function _archive_validate_month($month) {
return 1 <= $month && $month <= 12;
}