function biblio_ui_view_biblio in Bibliography Module 7.3
Viewing a biblio entity entry.
Parameters
Biblio $biblio: The biblio entity object.
$view_mode: The view mode. Default to full.
Return value
A renderable array of the rendered biblio.
1 string reference to 'biblio_ui_view_biblio'
- biblio_ui_menu in modules/
biblio_ui/ biblio_ui.module - Implements hook_menu().
File
- modules/
biblio_ui/ biblio_ui.module, line 416 - Main functionality file for the biblio UI module.
Code
function biblio_ui_view_biblio(Biblio $biblio, $view_mode = 'full') {
$info = $biblio
->view();
$info += array(
'#theme' => 'biblio',
'#entity' => $biblio,
'#view_mode' => $view_mode,
);
$info['#contextual_links']['biblio'] = array(
'biblio',
array(
$biblio
->identifier(),
),
);
return $info;
}