function _xmlsitemap_chunk_last_change in XML sitemap 5
Compare link modification time to modification time of previous link.
Parameters
$time:: Modification time of previous link
$value:: Link array
Return value
Most recent time
Related topics
1 string reference to '_xmlsitemap_chunk_last_change'
- _xmlsitemap_output_index in ./
xmlsitemap.module - Generate the site map index.
File
- ./
xmlsitemap.module, line 467 - Creates a site map compatible with the sitemaps.org schema.
Code
function _xmlsitemap_chunk_last_change($time, $value) {
if ($time < $value['#lastmod']) {
$time = $value['#lastmod'];
}
return $time;
}