MDL-11082 Improved groups upgrade performance 1.8x -> 1.9; thanks Eloy for telling...
[moodle-pu.git] / mod / glossary / formats / continuous / continuous_format.php
bloba1152bd04a57b72fcdeef31ecaab8794279496f6
1 <?php // $Id$
3 function glossary_show_entry_continuous($course, $cm, $glossary, $entry, $mode='', $hook='', $printicons=1, $ratings=NULL, $aliases=false) {
5 global $USER;
7 echo '<table class="glossarypost continuous" 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 $entry->alias = '';
17 echo '</td></tr>';
19 echo '<tr valign="top"><td class="entrylowersection">';
20 $return = glossary_print_entry_lower_section($course, $cm, $glossary, $entry, $mode, $hook, $printicons, $ratings, $aliases);
21 echo '</td>';
22 echo '</tr>';
23 echo "</table>\n";
25 return $return;
28 function glossary_print_entry_continuous($course, $cm, $glossary, $entry, $mode='', $hook='', $printicons=1, $ratings=NULL) {
30 //The print view for this format is exactly the normal view, so we use it
32 //Take out autolinking in definitions un print view
33 $entry->definition = '<span class="nolink">'.$entry->definition.'</span>';
35 //Call to view function (without icons, ratings and aliases) and return its result
36 return glossary_show_entry_continuous($course, $cm, $glossary, $entry, $mode, $hook, false, false, false);