Delete one unused table when grading online assignment submissions.
[moodle.git] / tag / tag_autocomplete.php
CommitLineData
c933a060 1<?php // $Id$
2
3require_once('lib.php');
4
5if( empty($CFG->usetags)) {
6 error(get_string('tagsaredisabled', 'tag'));
7}
8
9$query = optional_param('query', 0, PARAM_TEXT);
10$query = tag_normalize($query);
11
12$similar_tags = similar_tags($query);
13
14$count = 0;
15foreach ($similar_tags as $tag){
4f81c51d 16 echo tag_display_name($tag) . "\t" . $tag->id . "\n";
c933a060 17}
18
19?>