Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
fail-fast: false
matrix:
php: ['8.2']
moodle-branch: ['MOODLE_403_STABLE', 'MOODLE_404_STABLE']
moodle-branch: ['MOODLE_405_STABLE', 'MOODLE_500_STABLE']
database: [pgsql, mariadb]

steps:
Expand All @@ -49,7 +49,7 @@ jobs:

- name: Initialise moodle-plugin-ci
run: |
composer create-project -n --no-dev --prefer-dist moodlehq/moodle-plugin-ci ci ^3
composer create-project -n --no-dev --prefer-dist moodlehq/moodle-plugin-ci ci ^4
echo $(cd ci/bin; pwd) >> $GITHUB_PATH
echo $(cd ci/vendor/bin; pwd) >> $GITHUB_PATH
sudo locale-gen en_AU.UTF-8
Expand Down
17 changes: 5 additions & 12 deletions classes/plugininfo.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,15 +40,8 @@
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
class plugininfo extends plugin implements plugin_with_buttons, plugin_with_menuitems, plugin_with_configuration {
/**
* Whether the plugin is enabled
*
* @param context $context The context that the editor is used within
* @param array $options The options passed in when requesting the editor
* @param array $fpoptions The filepicker options passed in when requesting the editor
* @param editor $editor The editor instance in which the plugin is initialised
* @return boolean
*/

#[\Override]
public static function is_enabled(
context $context,
array $options,
Expand Down Expand Up @@ -85,12 +78,12 @@ public static function get_available_menuitems(): array {
}

/**
* Get a list of the menu items provided by this plugin.
* Get an array of options provided by this plugin.
*
* @param context $context The context that the editor is used within
* @param array $options The options passed in when requesting the editor
* @param array $fpoptions The filepicker options passed in when requesting the editor
* @param editor $editor The editor instance in which the plugin is initialised
* @param editor|null $editor The editor instance in which the plugin is initialised
* @return array
*/
public static function get_plugin_configuration_for_context(
Expand All @@ -109,7 +102,7 @@ public static function get_plugin_configuration_for_context(

$data = [
'params' => $params,
'fpoptions' => $fpoptions
'fpoptions' => $fpoptions,
];

return [
Expand Down
3 changes: 2 additions & 1 deletion classes/privacy/provider.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
//
// You should have received a copy of the GNU General Public License
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.

/**
* Privacy Subsystem implementation for tiny_sketch.
*
Expand All @@ -36,7 +37,7 @@ class provider implements \core_privacy\local\metadata\null_provider {
*
* @return string
*/
public static function get_reason() : string {
public static function get_reason(): string {
return 'privacy:metadata';
}
}
11 changes: 6 additions & 5 deletions lang/en/tiny_sketch.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,15 @@
*
* @copyright 2023 Matt Davidson <[email protected]>
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
* @package tiny_sketch
*/

$string['forceaccessibility'] = 'Post sketch popup for accessibility';
$string['forceaccessibility_desc'] = 'If enabled the sketch will be opened in the core media plugin after insert so that alt text can be added.';
$string['helplinktext'] = 'Insert Sketch';
$string['insert'] = 'Insert Sketch';
$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';
$string['forceaccessibility'] = 'Post sketch popup for accessibility';
$string['forceaccessibility_desc'] = 'If enabled the sketch will be opened in the core media plugin after insert so that alt text can be added.';
$string['insert'] = 'Insert Sketch';
$string['helplinktext'] = 'Insert Sketch';
$string['sketchtitle'] = 'Sketch and Save';
Loading