function theme_archive_page_title in Archive 5
Same name and namespace in other branches
- 6 archive.pages.inc \theme_archive_page_title()
- 7.2 archive.pages.inc \theme_archive_page_title()
- 7 archive.pages.inc \theme_archive_page_title()
1 theme call to theme_archive_page_title()
- _archive_page in ./
archive.inc - Fetch nodes for the selected date, or current date if none selected.
File
- ./
archive.inc, line 152
Code
function theme_archive_page_title($type, $year, $month, $day) {
$title = t('Archive');
$month_names = _get_month_names();
if ($day) {
$title .= ' - ' . $month_names[$month] . ' ' . $day . ', ' . $year;
}
else {
if ($month) {
$title .= ' - ' . $month_names[$month] . ' ' . $year;
}
else {
if ($year) {
$title .= ' - ' . $year;
}
}
}
if ($type != 'all') {
$type_name = db_result(db_query("SELECT name FROM {node_type} WHERE type = '%s'", $type));
$title .= ' - ' . ($type_name ? $type_name : $type);
}
return $title;
}