mirror of
https://github.com/moodle/moodle.git
synced 2025-08-07 01:46:45 +02:00
MDL-37085 Properly deprecated functions print_xxx() from course/lib.php
- get_print_section_cm_text() - print_section_add_menus() - print_section() - make_editing_buttons()
This commit is contained in:
parent
c58a25d6eb
commit
9a36be7361
10 changed files with 178 additions and 115 deletions
|
@ -665,7 +665,8 @@ class dndupload_ajax_processor {
|
|||
* @param cm_info $mod details of the mod just created
|
||||
*/
|
||||
protected function send_response($mod) {
|
||||
global $OUTPUT;
|
||||
global $OUTPUT, $PAGE;
|
||||
$courserenderer = $PAGE->get_renderer('core', 'course');
|
||||
|
||||
$resp = new stdClass();
|
||||
$resp->error = self::ERROR_OK;
|
||||
|
@ -673,7 +674,8 @@ class dndupload_ajax_processor {
|
|||
$resp->name = $mod->name;
|
||||
$resp->link = $mod->get_url()->out();
|
||||
$resp->elementid = 'module-'.$mod->id;
|
||||
$resp->commands = make_editing_buttons($mod, true, true, 0, $mod->sectionnum);
|
||||
$actions = course_get_cm_edit_actions($mod, 0, $mod->sectionnum);
|
||||
$resp->commands = ' '. $courserenderer->course_section_cm_edit_actions($actions);
|
||||
$resp->onclick = $mod->get_on_click();
|
||||
|
||||
// if using groupings, then display grouping name
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue