General developer forum

 
 
Picture of einat dagan
Adding a new button to mod_form.php
 

I would like to add button inside the activity form (created by mod_form.php)

 

but I want to be able to control the action done by this button.

now the submit of the form goes through "course" by modedit.php and it calls specific functions of the current activity (myactivity_add_instance, myactivity_update_instance etc..).

I would like to make a submit and call a new function.

Is there any mechanism I can use to do that?

 
Average of ratings: -