Skip to content

Commit

Permalink
Add supports components
Browse files Browse the repository at this point in the history
  • Loading branch information
gustavobazzo committed Jul 24, 2024
1 parent 07efc3c commit 97634f0
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 12 deletions.
10 changes: 0 additions & 10 deletions create-link.bat

This file was deleted.

14 changes: 14 additions & 0 deletions src/lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}

/**
Expand Down
2 changes: 1 addition & 1 deletion src/version.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion sync.ps1
Original file line number Diff line number Diff line change
@@ -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")
Expand Down

0 comments on commit 97634f0

Please sign in to comment.