Commit c2f7efef authored by Penny Leach's avatar Penny Leach
Browse files

renamed handle_event to event_occured and fixed an exception message

parent 86890410
......@@ -555,9 +555,9 @@ function redirect($location) {
* eg new user object etc.
*
*/
function handle_event($event, $data) {
function event_occured($event, $data) {
if (!$e = get_record('event_type','name',$event)) {
throw new Exception("Invalid event");
throw new Exception("Invalid event type $event");
}
$plugintypes = plugin_types();
foreach ($plugintypes as $name) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment