Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

- Sorting entries by the length of the concept so large concepts coul…

…d be linked first if they exist in the text to parse (avoiding that smaller concepts "gain control" over the larges one).

- Setting hard=coded default settings to glossary (will be replaced soon by global default settings)
  • Loading branch information...
commit 841d317f4a503210380eaf5126f340418a1a6223 1 parent 2908914
authored October 21, 2003
21  mod/glossary/dynalink.php
@@ -20,17 +20,32 @@ function glossary_dynamic_link($courseid, $text) {
40  mod/glossary/mod.html
... ...
@@ -1,6 +1,44 @@
1 1
 <!-- This page defines the form to create or edit an instance of this module -->
2 2
 <!-- It is used from /course/mod.php.  The whole instance is available as $form. -->
3  
-
  3
+<?PHP
  4
+/// stablishing hard-coded default parameters... Will be replaced soon by global settings.
  5
+if (!isset($form->allowcomments)) {
  6
+    $form->allowcomments = 1;
  7
+}
  8
+if (!isset($form->mainglossary)) {
  9
+    $form->mainglossary = 0;
  10
+}
  11
+if (!isset($form->allowduplicatedentries)) {
  12
+    $form->allowduplicatedentries = 0;
  13
+}
  14
+if (!isset($form->defaultapproval)) {
  15
+    $form->defaultapproval = 1;
  16
+}
  17
+if (!isset($form->displayformat)) {
  18
+    $form->displayformat = 0;
  19
+}
  20
+if (!isset($form->intro)) {
  21
+    $form->intro = "";
  22
+}
  23
+if (!isset($form->name)) {
  24
+    $form->name = "";
  25
+}
  26
+if (!isset($form->showall)) {
  27
+    $form->showall = 1;
  28
+}
  29
+if (!isset($form->showalphabet)) {
  30
+    $form->showalphabet = 1;
  31
+}
  32
+if (!isset($form->showspecial)) {
  33
+    $form->showspecial = 1;
  34
+}
  35
+if (!isset($form->studentcanpost)) {
  36
+    $form->studentcanpost = 0;
  37
+}
  38
+if (!isset($form->usedynalink)) {
  39
+    $form->usedynalink = 1;
  40
+}
  41
+?>
4 42
 <FORM name="form" method="post" action="<?=$ME ?>">
5 43
 <CENTER>
6 44
 <TABLE cellpadding=5>

0 notes on commit 841d317

Please sign in to comment.
Something went wrong with that request. Please try again.