#15 Added global search support
This commit is contained in:
parent
5f580a9bde
commit
62715ab073
3 changed files with 40 additions and 1 deletions
38
classes/search/activity.php
Normal file
38
classes/search/activity.php
Normal file
|
@ -0,0 +1,38 @@
|
||||||
|
<?php
|
||||||
|
// This file is part of the customcert module for Moodle - http://moodle.org/
|
||||||
|
//
|
||||||
|
// Moodle is free software: you can redistribute it and/or modify
|
||||||
|
// it under the terms of the GNU General Public License as published by
|
||||||
|
// the Free Software Foundation, either version 3 of the License, or
|
||||||
|
// (at your option) any later version.
|
||||||
|
//
|
||||||
|
// Moodle is distributed in the hope that it will be useful,
|
||||||
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
// GNU General Public License for more details.
|
||||||
|
//
|
||||||
|
// You should have received a copy of the GNU General Public License
|
||||||
|
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Search area for mod_customcert activities.
|
||||||
|
*
|
||||||
|
* @package mod_customcert
|
||||||
|
* @copyright 2016 Mark Nelson <markn@moodle.com>
|
||||||
|
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||||
|
*/
|
||||||
|
|
||||||
|
namespace mod_customcert\search;
|
||||||
|
|
||||||
|
defined('MOODLE_INTERNAL') || die();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Search area for mod_customcert activities.
|
||||||
|
*
|
||||||
|
* @package mod_customcert
|
||||||
|
* @copyright 2016 Mark Nelson <markn@moodle.com>
|
||||||
|
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||||
|
*/
|
||||||
|
class activity extends \core_search\base_activity {
|
||||||
|
|
||||||
|
}
|
|
@ -108,6 +108,7 @@ $string['saveandclose'] = 'Save and close';
|
||||||
$string['saveandcontinue'] = 'Save and continue';
|
$string['saveandcontinue'] = 'Save and continue';
|
||||||
$string['savechangespreview'] = 'Save changes and preview';
|
$string['savechangespreview'] = 'Save changes and preview';
|
||||||
$string['savetemplate'] = 'Save template';
|
$string['savetemplate'] = 'Save template';
|
||||||
|
$string['search:activity'] = 'Custom certificate - activity information';
|
||||||
$string['setprotection'] = 'Set protection';
|
$string['setprotection'] = 'Set protection';
|
||||||
$string['setprotection_help'] = 'Choose the actions you wish to prevent users from performing on this certificate.';
|
$string['setprotection_help'] = 'Choose the actions you wish to prevent users from performing on this certificate.';
|
||||||
$string['summaryofissue'] = 'Summary of issue';
|
$string['summaryofissue'] = 'Summary of issue';
|
||||||
|
|
|
@ -24,7 +24,7 @@
|
||||||
|
|
||||||
defined('MOODLE_INTERNAL') || die('Direct access to this script is forbidden.');
|
defined('MOODLE_INTERNAL') || die('Direct access to this script is forbidden.');
|
||||||
|
|
||||||
$plugin->version = 2016052300; // The current module version (Date: YYYYMMDDXX).
|
$plugin->version = 2016052301; // The current module version (Date: YYYYMMDDXX).
|
||||||
$plugin->requires = 2016052300; // Requires this Moodle version (3.1).
|
$plugin->requires = 2016052300; // Requires this Moodle version (3.1).
|
||||||
$plugin->cron = 0; // Period for cron to check this module (secs).
|
$plugin->cron = 0; // Period for cron to check this module (secs).
|
||||||
$plugin->component = 'mod_customcert';
|
$plugin->component = 'mod_customcert';
|
||||||
|
|
Loading…
Reference in a new issue