If you have time-please take a look

If you have time-please take a look

by dawn alderson -
Number of replies: 2

Hi,

working on a project with another.  There appears to be a primary question about plugin/hook-ability smile

here is the link: https://docs.moodle.org/28/en/Game_Logic_in_Moodle_Advanced_editor_draft1

have put bold text in the area for consideration.....specifically the last note on the doc.

thanks

Dawn

Average of ratings: -
In reply to dawn alderson

Re: If you have time-please take a look

by ryan sanders -

taking time and looking back at stuff...

www.yoursite.com/moodle/mod/someplugin/mod_form.php (some place in file) $this->standard_coursemodule_elements();  = what loads up common stuff for an activity / resource when you goto edit it.

searching further....

www.yoursite.com/moodle/course/moodleform_mod.php  is were function standard_coursemodule_elements(){  is created.

looks like it would be easy to add an " IF / THEN " statement within the function.without having to edit multi core files of plugins. to add additional options on edit pages.

==============

i do believe i got my hands on some older code some were along the lines (or just plain initial confusion reading over moodle code, very possible). were moodleform.mod.php -> standard_coursemodule_elements()  function was all placed in renderer.php and/or mod_form.php  or some other file.  and stuff was "hard coded" into each mod/someplugin/somefile and each plugin was saying hey, i support this feature or saying hey i do not support this feature