You are here

function biblio_get_title_url_info in Bibliography Module 7.2

Same name and namespace in other branches
  1. 6.2 biblio.module \biblio_get_title_url_info()
  2. 6 biblio.module \biblio_get_title_url_info()
  3. 7 biblio.module \biblio_get_title_url_info()

@todo add relevant documentation

Parameters

object $biblio:

Return value

array

9 calls to biblio_get_title_url_info()
biblio_style_ama in styles/biblio_style_ama.inc
biblio_style_apa in styles/biblio_style_apa.inc
Apply a bibliographic style to the node
biblio_style_chicago in styles/biblio_style_chicago.inc
Apply a bibliographic style to the node
biblio_style_classic in styles/biblio_style_classic.inc
Apply a bibliographic style to the node
biblio_style_cse in styles/biblio_style_cse.inc

... See full list

File

./biblio.module, line 2421

Code

function biblio_get_title_url_info($biblio) {
  return array(
    'link' => variable_get('biblio_link_title_url', 0) && !empty($biblio->biblio_url) ? $biblio->biblio_url : "biblio/{$biblio->bid}",
    'options' => array(
      'attributes' => variable_get('biblio_links_target_new_window', FALSE) ? array(
        'target' => '_blank',
      ) : array(),
      'html' => TRUE,
    ),
  );
}