New module help(php programming)

New module help(php programming)

by David T. Cannon -
Number of replies: 0

Hello,

So I am writing a new module(certificate), and having little trouble. When you select update from the class activities, it takes you to course/mod.php and incorporates my mod/certificate/mod.php. Now after you click the Save Changes button, it sends to /course/mod.php, then redirects to mod/certificate/view.php. How can I change the redirect to mod/certificate/mod.php. There is a way, I just not understanding how its done. maybe in course/mod.php:
$return = $updateinstancefunction($mod);

set's it, but Im not sure.

or, maybe I redirect from mod/certificate/view.php to mod/certificate/mod.php based on a hidden field.

Dave.

Average of ratings: -