This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** copied a part of code: /mod/search/search_hooks.php | |
* Return default results for searches on tags. | |
* | |
* @param unknown_type $hook | |
* @param unknown_type $type | |
* @param unknown_type $value | |
* @param unknown_type $params |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* @auth: d.gupta | |
* @date: Apr/11/12 | |
* @desc: This file (start.php) along a manifest file constitute a plugin namely "search_extension" that extends the "search" | |
The core plugin "search" displays tag results only if the inputted string matches the tags exactly and completely | |
[concerned code: search_tag_hook(..) in /mod/search/search_hooks.php] | |
However, the following code overrides it by correctly displaying the tag-search-results even when the searched string is a substring of the tag |