Referer address?

Referer address?

by Kevin Burton -
Number of replies: 0

In settings.php in my activity module I have an admin_externalpage that refers to another page that I call configuration.php. The page has a table at the top then a various actions and finally a form to save all the changes or cancel. If the user selects cancel I would like to go back to the "caller". Rather than hard-code an address how is the best way to find out what the calling page is so I can react to $mform->is_cancelled() and return gracefully to the caller (in this case I am guessing it would be one of moodle's admin setting pages).

Average of ratings: -