function theme_views_oai_pmh_identify_body in Views OAI-PMH 6.2
Same name and namespace in other branches
- 6 theme/views_oai_pmh.theme.inc \theme_views_oai_pmh_identify_body()
- 7 theme/views_oai_pmh.theme.inc \theme_views_oai_pmh_identify_body()
- 7.2 theme/views_oai_pmh.theme.inc \theme_views_oai_pmh_identify_body()
1 theme call to theme_views_oai_pmh_identify_body()
File
- theme/
views_oai_pmh.theme.inc, line 172 - Theme related functions for processing our output style plugins.
Code
function theme_views_oai_pmh_identify_body($view) {
global $base_url;
$path = $view->display_handler
->get_path();
$datestamp = db_result(db_query("SELECT min(changed) FROM {node} "));
$ident = array(
'repositoryName' => variable_get('site_name', 'Views OAI'),
'baseURL' => $base_url . '/' . $path,
'protocolVersion' => '2.0',
'adminEmail' => variable_get('site_mail', ini_get('sendmail_from')),
'earliestDatestamp' => gmstrftime('%Y-%m-%dT%H:%M:%SZ', $datestamp),
'deletedRecord' => 'no',
'granularity' => 'YYYY-MM-DDThh:mm:ssZ',
'compression' => 'yes',
);
return format_xml_elements($ident);
}