Diferencia entre revisiones de «admin/setting/local recyclebin»

De MoodleDocs
(Added page needed for 'Moodle Docs for this page' for plugin Recycle bin)
 
(tidy up)
Línea 3: Línea 3:
It requires a core hack as there is no pre-cm-deleted event, you will need to add a line to '/course/lib.php' (function course_delete_module), right after the first "if()".
It requires a core hack as there is no pre-cm-deleted event, you will need to add a line to '/course/lib.php' (function course_delete_module), right after the first "if()".


You can edit the lib.php file easily with Notepad ++.
You can edit the lib.php file easily with [https://notepad-plus-plus.org/ Notepad ++ for Windows].


[[Archivo:lib_php modified file opened in notepad plus plus.png|600px]]
[[Archivo:lib_php modified file opened in notepad plus plus.png|600px]]


Look at the modified lib.php file contents around line 1654:
Look at the hacked lib.php file contents around line 1654:


[[Archivo:lib_php modified file opened in notepad plus plus.png|600px]]
[[Archivo:lib_php modified file opened in notepad plus plus.png|600px]]

Revisión del 15:45 25 ago 2015

This plugin adds a "recycle bin" for course modules to Moodle.

It requires a core hack as there is no pre-cm-deleted event, you will need to add a line to '/course/lib.php' (function course_delete_module), right after the first "if()".

You can edit the lib.php file easily with Notepad ++ for Windows.

lib php modified file opened in notepad plus plus.png

Look at the hacked lib.php file contents around line 1654:

lib php modified file opened in notepad plus plus.png