* this replaces the old portfolio_fake_add_url function
*/
define('PORTFOLIO_ADD_FAKE_URL', 5);
+
+/**
+ * PORTFOLIO_ADD_MOODULE_URL - hacky way to turn the button class into a moodle_url to redirect to
+ * this replaces the old portfolio_fake_add_url function
+ */
+define('PORTFOLIO_ADD_MOODLE_URL', 6);
return;
}
}
+ // If we just want a moodle_url to redirect to, do it now.
+ if ($format == PORTFOLIO_ADD_MOODLE_URL) {
+ return $url;
+ }
+
// if we just want a url to redirect to, do it now
if ($format == PORTFOLIO_ADD_FAKE_URL) {
return $url->out(false);