function theme_views_oai_pmh_record_header in Views OAI-PMH 6
Same name and namespace in other branches
- 6.2 theme/views_oai_pmh.theme.inc \theme_views_oai_pmh_record_header()
- 7 theme/views_oai_pmh.theme.inc \theme_views_oai_pmh_record_header()
- 7.2 theme/views_oai_pmh.theme.inc \theme_views_oai_pmh_record_header()
2 theme calls to theme_views_oai_pmh_record_header()
File
- theme/
views_oai_pmh.theme.inc, line 92 - Theme related functions for processing our output style plugins.
Code
function theme_views_oai_pmh_record_header($vars) {
global $base_url;
static $parts = array();
if (empty($parts)) {
$parts = parse_url($base_url);
}
$nid = $vars['nid'];
$datestamp = $vars['node_changed'];
$info['header']['identifier'] = 'oai:' . $parts['host'] . ':' . $nid;
$info['header']['datestamp'] = gmstrftime('%Y-%m-%dT%H:%M:%SZ', $datestamp);
// $info['header']['setSpec'] = '';
return format_xml_elements($info);
}