MDL-11082 Improved groups upgrade performance 1.8x -> 1.9; thanks Eloy for telling...
[moodle-pu.git] / mod / glossary / formats / dictionary / dictionary_format.php
blobdb5634b536d7c7b87676c6bb19d0693f76a5ed06
1 <?php // $Id$
3 function glossary_show_entry_dictionary($course, $cm, $glossary, $entry, $mode='', $hook='', $printicons=1, $ratings=NULL, $aliases=true) {
5 global $CFG, $USER;
7 echo '<table class="glossarypost dictionary" cellspacing="0">';
8 echo '<tr valign="top">';
9 echo '<td class="entry">';
10 glossary_print_entry_approval($cm, $entry, $mode);
11 glossary_print_entry_attachment($entry,'html','right');
12 echo '<span class="concept">';
13 glossary_print_entry_concept($entry);
14 echo ':</span> ';
15 glossary_print_entry_definition($entry);
16 echo '</td></tr>';
17 echo '<tr valign="top"><td class="entrylowersection">';
18 $return = glossary_print_entry_lower_section($course, $cm, $glossary, $entry, $mode, $hook, $printicons, $ratings, $aliases);
19 echo '</td>';
20 echo '</tr>';
21 echo "</table>\n";
23 return $return;
26 function glossary_print_entry_dictionary($course, $cm, $glossary, $entry, $mode='', $hook='', $printicons=1, $ratings=NULL) {
28 //The print view for this format is exactly the normal view, so we use it
30 //Take out autolinking in definitions in print view
31 $entry->definition = '<span class="nolink">'.$entry->definition.'</span>';
33 //Call to view function (without icons, ratings and aliases) and return its result
34 return glossary_show_entry_dictionary($course, $cm, $glossary, $entry, $mode, $hook, false, false, false);