[ Index ]

PHP Cross Reference of Moodle 1.9.3 [Build 15-Oct-2008]

title

Body

[close]

/tag/ -> tag_autocomplete.php (source)

   1  <?php // $Id: tag_autocomplete.php,v 1.3.2.8 2008/07/07 07:40:36 scyrma Exp $
   2  
   3  require_once ('../config.php');
   4  require_once ('lib.php');
   5  
   6  require_login();
   7  
   8  if (empty($CFG->usetags)) {
   9      print_error('tagsaredisabled', 'tag');
  10  }
  11  
  12  $query = addslashes(optional_param('query', '', PARAM_RAW));  
  13  
  14  if ($similar_tags = tag_autocomplete($query)) {
  15      foreach ($similar_tags as $tag) {
  16          echo $tag->name . "\t" . tag_display_name($tag) . "\n";
  17      }
  18  }
  19  
  20  ?>


Generated: Wed Jan 14 11:33:29 2009 Cross-referenced by PHPXref 0.7