mirror of
https://github.com/moodle/moodle.git
synced 2025-08-08 10:26:40 +02:00
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:
parent
84d9e83588
commit
a0fa76c86b
16 changed files with 270 additions and 8 deletions
|
@ -599,6 +599,14 @@ $functions = array(
|
|||
'ajax' => true,
|
||||
'capabilities' => 'moodle/course:sectionvisibility, moodle/course:activityvisibility',
|
||||
],
|
||||
'core_courseformat_create_module' => [
|
||||
'classname' => 'core_courseformat\external\create_module',
|
||||
'methodname' => 'execute',
|
||||
'description' => 'Add module to course.',
|
||||
'type' => 'write',
|
||||
'ajax' => true,
|
||||
'capabilities' => 'moodle/course:manageactivities',
|
||||
],
|
||||
'core_course_edit_module' => array(
|
||||
'classname' => 'core_course_external',
|
||||
'methodname' => 'edit_module',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue