Changed $doc->id to $doc->docid to prevent clashes with Zend Search's internal
[moodle.git] / search / documents / glossary_document.php
index 0305b72..7d9db6b 100644 (file)
@@ -12,7 +12,7 @@
   class GlossarySearchDocument extends SearchDocument {  
     public function __construct(&$entry, $glossary_id, $course_id, $group_id) {
       // generic information; required
-      $doc->id        = $entry['id'];
+      $doc->docid     = $entry['id'];
       $doc->title     = $entry['concept'];
                   
       $user = get_recordset('user', 'id', $entry['userid'])->fields;
     } //foreach
     
     return $documents;
-  } //glossary_get_content_for_index 
+  } //glossary_get_content_for_index
+    
+  function glossary_delete($info) {
+    return $info;            
+  } //glossary_delete  
   
 ?>
\ No newline at end of file