/** * overload steam add function with different add listener * * @return void * @author Andy Bennett */ public function add() { Event::clear('steamform_' . $this->setup['name'] . '_add.complete'); Event::add('steamform_' . $this->setup['name'] . '_add.complete', array('Galleries_Controller', 'event_add_complete')); // We can't use parent here, as that wipes out the event we've set! Steam_Core::add(); }
/** * add a user * * @return void * @author Andy Bennett */ public function add() { Event::clear('steamform_auth_admin_add.complete'); Event::add('steamform_auth_admin_add.complete', array('auth_admin_events', 'add_complete')); parent::add(); }