You are here

function csl_choose::render in Bibliography Module 7.2

Same name and namespace in other branches
  1. 6.2 modules/CiteProc/CSL.inc \csl_choose::render()
  2. 7 modules/CiteProc/CSL.inc \csl_choose::render()

Overrides csl_collection::render

File

modules/CiteProc/CSL.inc, line 1377

Class

csl_choose

Code

function render($data, $mode = NULL) {
  foreach ($this->elements as $choice) {
    if ($choice
      ->evaluate($data)) {
      return $choice
        ->render($data, $mode);
    }
  }
}