From 81e882e266fd285da1832fef6004e8aa3273143c Mon Sep 17 00:00:00 2001 From: Matt Davidson Date: Thu, 10 May 2018 09:47:36 -0400 Subject: [PATCH] Add GDPR privacy files --- classes/privacy/provider.php | 44 ++++++++++++++++++++++++++++++++++++ lang/en/tinymce_sketch.php | 1 + version.php | 4 ++-- 3 files changed, 47 insertions(+), 2 deletions(-) create mode 100644 classes/privacy/provider.php diff --git a/classes/privacy/provider.php b/classes/privacy/provider.php new file mode 100644 index 0000000..4e754c1 --- /dev/null +++ b/classes/privacy/provider.php @@ -0,0 +1,44 @@ +. +/** + * Privacy Subsystem implementation for tinymce_sketch. + * + * @package tinymce_sketch + * @copyright 2018 Matt Davidson + * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later + */ + +namespace tinymce_sketch\privacy; + +defined('MOODLE_INTERNAL') || die(); + +/** + * Privacy Subsystem for tinymce_sketch implementing null_provider. + * + * @copyright 2018 Matt Davidson + * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later + */ +class provider implements \core_privacy\local\metadata\null_provider { + /** + * Get the language string identifier with the component's language + * file to explain why this plugin stores no data. + * + * @return string + */ + public static function get_reason() : string { + return 'privacy:metadata'; + } +} \ No newline at end of file diff --git a/lang/en/tinymce_sketch.php b/lang/en/tinymce_sketch.php index 86f3e6d..6c8b9d9 100644 --- a/lang/en/tinymce_sketch.php +++ b/lang/en/tinymce_sketch.php @@ -22,6 +22,7 @@ */ $string['pluginname'] = 'Sketch'; +$string['privacy:metadata'] = 'The Sketch plugin does not save or export user data.'; $string['sketchtitle'] = 'Sketch and Save'; $string['sketch_description'] = 'Quick sketch in Moodle'; $string['sketch_long_description'] = 'Draw and edit images inside any editor in Moodle'; diff --git a/version.php b/version.php index 79d9421..496bebc 100644 --- a/version.php +++ b/version.php @@ -24,8 +24,8 @@ defined('MOODLE_INTERNAL') || die(); -$plugin->version = 2017091200; // The current plugin version (Date: YYYYMMDDXX). -$plugin->release = '1'; +$plugin->version = 2018051000; // The current plugin version (Date: YYYYMMDDXX). +$plugin->release = '1.1'; $plugin->requires = 2015111600; // Requires this Moodle version. $plugin->component = 'tinymce_sketch'; $plugin->maturity = MATURITY_STABLE;