function biblio_handler_field_biblio_render::render in Bibliography Module 7.3
Render the field.
Parameters
array $values: The values retrieved from the database.
Overrides views_handler_field::render
File
- includes/
views/ handlers/ biblio_handler_field_biblio_render.inc, line 49 - Contains the message field handler.
Class
- biblio_handler_field_biblio_render
- Views field handler for rendering a bilbio.
Code
function render($values) {
$field_alias = $this->field_alias;
if (empty($values->{$field_alias}) || !($biblio = biblio_load($values->{$field_alias}))) {
return;
}
// @todo: Move this to the UI.
// Allow setting the options from a variable.
$options = variable_get('biblio_views_biblio_render_options', array());
return $biblio
->getText($this->options['style_name'], $options);
}