You are here

function _build_biblio_xml_link in Bibliography Module 6

Creates a link to export a node (or view) in XML format

Parameters

$base this is the base url (defaults to /biblio):

$nid the node id, if NULL then the current view is exported:

Return value

a link (<a href=...>XML</a>)

2 calls to _build_biblio_xml_link()
biblio_link in ./biblio.module
Implementation of hook_link().
_build_biblio_link in ./biblio_theme.inc
Creates a link to export a node (or view) in EndNote Tagged format

File

./biblio_theme.inc, line 1008

Code

function _build_biblio_xml_link($base, $nid = NULL) {
  return array(
    'title' => t('XML'),
    'href' => "{$base}/export/xml/{$nid}",
    'attributes' => array(
      'title' => t("Click to download the XML formatted file"),
    ),
  );
}