$callbackclass = optional_param('callbackclass', null, PARAM_ALPHAEXT); // callback class eg forum_portfolio_caller - the class to handle the exporting content.
require_login(); // this is selectively called again with $course later when we know for sure which one we're in.
-
+$PAGE->set_url('/portfolio/add.php', array('id' => $dataid));
$exporter = null;
// try and find a partial export id in the session if it's not passed explicitly
$id = required_param('id', PARAM_INT);
require_login();
+$PAGE->set_url('/portfolio/add.php', array('id' => $id));
$exporter = portfolio_exporter::rewaken_object($id);
$exporter->verify_rewaken();