You are here

function theme_views_oai_pmh_record in Views OAI-PMH 6.2

Same name and namespace in other branches
  1. 7.2 theme/views_oai_pmh.theme.inc \theme_views_oai_pmh_record()

Theme function capable of handling all types of OAI records.

File

theme/views_oai_pmh.theme.inc, line 221
Theme related functions for processing our output style plugins.

Code

function theme_views_oai_pmh_record($vars) {
  $nid = $vars['nid'];
  $datestamp = $vars['node_changed'];
  $header = theme('views_oai_pmh_record_header', array(
    'nid' => $nid,
    'node_changed' => $datestamp,
  ));
  return '<record>
' . $header . '  <metadata>
' . $vars['fields'] . '  </metadata>
</record>
';
}