Skip to content

Commit

Permalink
Add tag support
Browse files Browse the repository at this point in the history
  • Loading branch information
Paola Maneggia committed Jul 16, 2024
1 parent 31376c7 commit d339744
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 1 deletion.
36 changes: 36 additions & 0 deletions db/tag.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
<?php
// This file is part of 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/>.

/**
* Tag area definitions for Imagehub
*
* Documentation: {@link https://moodledev.io/docs/apis/subsystems/tag}
*
* @package repository_imagehub
* @copyright 2024 ISB Bayern
* @author Paola Maneggia
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/

defined('MOODLE_INTERNAL') || die();

$tagareas = [
[
'itemtype' => 'repository_imagehub',
'component' => 'repository_imagehub',
'collection' => 'repository_imagehub_standard_collection',
],
];
2 changes: 2 additions & 0 deletions lang/en/repository_imagehub.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,3 +30,5 @@
$string['imagehub:view'] = 'View Imagehub repository';
$string['pluginname'] = 'Imagehub';
$string['privacy:metadata'] = 'The Imagehub plugin doesn\'t store any personal data.';
$string['tagarea_repository_imagehub'] = 'Repository imagehug';
$string['tagcollection_repository_imagehub_standard_collection'] = 'Tagcollection repository imagehub standard collection';
2 changes: 1 addition & 1 deletion version.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@

$plugin->component = 'repository_imagehub';
$plugin->release = '1.0';
$plugin->version = 2024071500;
$plugin->version = 2024071504;
$plugin->requires = 2024042200;
$plugin->supported = [404, 405];
$plugin->maturity = MATURITY_STABLE;

0 comments on commit d339744

Please sign in to comment.