Skip to content

Commit

Permalink
Merge pull request #7 from SammyIsConfused/bugfix/support_privacy_api
Browse files Browse the repository at this point in the history
 Add null provider to support the privacy API
  • Loading branch information
SammyIsConfused authored Aug 31, 2020
2 parents fb6f75d + d2a949d commit 11306fb
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 1 deletion.
13 changes: 13 additions & 0 deletions classes/privacy/provider.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<?php
namespace block_equella_search\privacy;

class provider implements \core_privacy\local\metadata\null_provider {
// this plugin does not store any personal user data.
/**
* Get the language string identifier with the component's language
* file to explain why this plugin stores no data.
*/
public static function get_reason(): string {
return 'privacy:metadata';
}
}
1 change: 1 addition & 0 deletions lang/en/block_equella_search.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,3 +42,4 @@
$string['equella_search:addinstance'] = 'Add openEQUELLA search block';
$string['equella_search:view'] = 'View openEQUELLA search block';
$string['block/equella_search:search'] = 'Search in openEQUELLA';
$string['privacy:metadata'] = 'This block does not store any data.';
3 changes: 2 additions & 1 deletion version.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,9 @@

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

$plugin->version = 2011012803; // The current plugin version (Date: YYYYMMDDXX)
$plugin->version = 2020083100; // The current plugin version (Date: YYYYMMDDXX)
$plugin->component = 'block_equella_search'; // Full name of the plugin (used for diagnostics)
$plugin->dependencies = array(
'mod_equella' => 2015042000
);
$plugin->release = "1.0.0";

0 comments on commit 11306fb

Please sign in to comment.