/** * @param RestrictedEContentDriver $recordDriver */ function loadCitations($recordDriver) { global $interface; $citationCount = 0; $formats = $recordDriver->getCitationFormats(); foreach ($formats as $current) { $interface->assign(strtolower($current), $recordDriver->getCitation($current)); $citationCount++; } $interface->assign('citationCount', $citationCount); }