wwwroot.'/mod/glossary/view.php?id='.$id.'&mode=letter', get_string('standardview', 'glossary')); } if (in_array(GLOSSARY_CATEGORY, $dt)) { $browserow[] = new tabobject(GLOSSARY_CATEGORY_VIEW, $CFG->wwwroot.'/mod/glossary/view.php?id='.$id.'&mode=cat', get_string('categoryview', 'glossary')); } if (in_array(GLOSSARY_DATE, $dt)) { $browserow[] = new tabobject(GLOSSARY_DATE_VIEW, $CFG->wwwroot.'/mod/glossary/view.php?id='.$id.'&mode=date', get_string('dateview', 'glossary')); } if (in_array(GLOSSARY_AUTHOR, $dt)) { $browserow[] = new tabobject(GLOSSARY_AUTHOR_VIEW, $CFG->wwwroot.'/mod/glossary/view.php?id='.$id.'&mode=author', get_string('authorview', 'glossary')); } if ($tab < GLOSSARY_STANDARD_VIEW || $tab > GLOSSARY_AUTHOR_VIEW) { // We are on second row $inactive = array('edit'); $activated = array('edit'); $browserow[] = new tabobject('edit', '#', get_string('edit')); } /// Put all this info together $tabrows = array(); $tabrows[] = $browserow; // Always put these at the top if ($toolsrow) { $tabrows[] = $toolsrow; } ?>