You are here

public function biblio_handler_field::set_label in Bibliography Module 7

Same name and namespace in other branches
  1. 6.2 views/biblio_handler_field.inc \biblio_handler_field::set_label()
  2. 6 views/biblio_handler_field.inc \biblio_handler_field::set_label()
  3. 7.2 views/biblio_handler_field.inc \biblio_handler_field::set_label()
3 calls to biblio_handler_field::set_label()
biblio_handler_field::render in views/biblio_handler_field.inc
Render the field.
biblio_handler_field_contributor::render in views/biblio_handler_field_contributor.inc
Render the field.
biblio_handler_field_keyword::render in views/biblio_handler_field_keyword.inc
Render the field.

File

views/biblio_handler_field.inc, line 73

Class

biblio_handler_field

Code

public function set_label(&$values) {
  if (!$this->options['biblio_label'] || !isset($values->biblio_tid)) {
    return;
  }
  $tid = $values->biblio_tid;
  $this->options['label'] = isset($this->labels[$tid]) ? $this->labels[$tid] : $this->labels[0];
}