MDL-81767 courseformat: Add module quickcreation feature

- Add new 'FEATURE_QUICKCREATE' plugin feature that indicates the module can
  be created with a single click. It will use its own 'quickcreatename' defined
  string as the initial default name.
- Add new 'core_courseformat\external\create_module' web service to create new
  modules with the quickcreate featuer in the course page.
- Add a new 'create_module' state action.
This commit is contained in:
Mikel Martín 2024-08-07 15:37:43 +02:00
parent 84d9e83588
commit a0fa76c86b
16 changed files with 270 additions and 8 deletions

View file

@ -500,6 +500,8 @@ define('MOD_PURPOSE_OTHER', 'other');
*/
define('MOD_PURPOSE_INTERFACE', 'interface');
/** True if module can be quickly created without filling a previous form. */
define('FEATURE_QUICKCREATE', 'quickcreate');
/**
* Security token used for allowing access
* from external application such as web services.