Glossary Level Default Settings

glossary_entbypage:

glossary_studentspost:

glossary_dupentries:

glossary_allowcomments:

glossary_linkbydefault:

glossary_defaultapproval:

Entry Level Default Settings

glossary_linkentries:

glossary_casesensitive:

glossary_fullmatch:

Display Formats Setup
fid = 0; $displayformat->relatedview = 0; $displayformat->visible = 1; $displayformat->id = insert_record("glossary_displayformats",$displayformat); } if ( !$displayformat = get_record("glossary_displayformats","fid",1) ) { unset($displayformat); $displayformat->fid = 1; $displayformat->relatedview = 1; $displayformat->visible = 1; $displayformat->id = insert_record("glossary_displayformats",$displayformat); } $formats = array(); $formats[0] = get_string("displayformatdefault", "glossary"); $formats[1] = get_string("displayformatcontinuous", "glossary"); $basedir = opendir("$CFG->dirroot/mod/glossary/formats"); while ($dir = readdir($basedir)) { $firstchar = substr($dir, 0, 1); if ($firstchar == "." or $dir == "CVS" or $dir == "_vti_cnf") { continue; } if (filetype("$CFG->dirroot/mod/glossary/formats/$dir") == "dir") { continue; } if ( $pos = strpos($dir, ".") ) { $dir = substr($dir, 0, $pos ); if ($dir != 0 and $dir != 1) { // excluding basic formats if ( !$displayformat = get_record("glossary_displayformats","fid",$dir) ) { unset($displayformat); $displayformat->fid = $dir; $displayformat->relatedview = $dir; $displayformat->visible = 1; $displayformat->id = insert_record("glossary_displayformats",$displayformat); } $formats[$dir] = get_string("displayformat$dir", "glossary"); } } } asort($formats); echo ''; for ($i = 0; $i < count($formats); $i++) { if ( $formats[$i] ) { $format = get_record("glossary_displayformats","fid",$i); echo ''; echo ''; $eicon = "wwwroot/mod/glossary/formats.php?id=$i&mode=edit\">"; if ( $format->visible ) { $vtitle = get_string("hide"); $vicon = "hide.gif"; } else { $vtitle = get_string("show"); $vicon = "show.gif"; } $vicon = "wwwroot/mod/glossary/formats.php?id=$i&mode=visible\">"; echo ''; echo ''; } } echo '
' . $formats[$i] . ' ' . $eicon . '  ' . $vicon . '
'; ?>
">