From 97634f034727eac05faf05c9a3a09983d675880e Mon Sep 17 00:00:00 2001 From: Gustavo Bazzo Date: Wed, 24 Jul 2024 16:32:44 -0400 Subject: [PATCH] Add supports components --- create-link.bat | 10 ---------- src/lib.php | 14 ++++++++++++++ src/version.php | 2 +- sync.ps1 | 2 +- 4 files changed, 16 insertions(+), 12 deletions(-) delete mode 100644 create-link.bat diff --git a/create-link.bat b/create-link.bat deleted file mode 100644 index af098bc..0000000 --- a/create-link.bat +++ /dev/null @@ -1,10 +0,0 @@ -echo off -set pluginPath=..\moodledev3\course\format\recit - -rem remove the current link -..\outils\junction -d src - -rem set the link -..\outils\junction src %pluginPath% - -pause \ No newline at end of file diff --git a/src/lib.php b/src/lib.php index 9f8d8ed..f056c88 100644 --- a/src/lib.php +++ b/src/lib.php @@ -663,6 +663,20 @@ public function get_config_for_external() { public function uses_indentation(): bool{ return true; } + + /** + * Returns true if this course format is compatible with content components. + * + * Using components means the content elements can watch the frontend course state and + * react to the changes. Formats with component compatibility can have more interactions + * without refreshing the page, like having drag and drop from the course index to reorder + * sections and activities. + * + * @return bool if the format is compatible with components. + */ + public function supports_components() { + return false; + } } /** diff --git a/src/version.php b/src/version.php index 4b57450..7265fee 100644 --- a/src/version.php +++ b/src/version.php @@ -24,7 +24,7 @@ defined('MOODLE_INTERNAL') || die(); -$plugin->version = 2024050900; // The current plugin version (Date: YYYYMMDDXX). +$plugin->version = 2024050901; // The current plugin version (Date: YYYYMMDDXX). $plugin->requires = 2022041900.00; // Moodle 4.0.0 $plugin->component = 'format_recit'; // Full name of the plugin (used for diagnostics). $plugin->maturity = MATURITY_STABLE; diff --git a/sync.ps1 b/sync.ps1 index 925c8e2..c39b02c 100644 --- a/sync.ps1 +++ b/sync.ps1 @@ -1,5 +1,5 @@ $from = "moodle-format_recit/src/*" -$to = "shared/recitfad/course/format/recit" +$to = "shared/recitfad2/course/format/recit" try { . ("..\sync\watcher.ps1")