function fp_goto
Search API
| 7.x misc.inc | fp_goto($path, $query = "") |
| 6.x misc.inc | fp_goto($path, $query = "") |
| 5.x misc.inc | fp_goto($path, $query = "") |
Redirect the user's browser to the specified internal path + query.
We will automatically add the current_student_id variable, if it is not present in the query.
Example uses:
45 calls to fp_goto()
- admin.degrees.inc in modules/
admin/ admin.degrees.inc - admin.groups.inc in modules/
admin/ admin.groups.inc - admin_edit_degree_form_submit in modules/
admin/ admin.degrees.inc - admin_edit_group_form_submit in modules/
admin/ admin.groups.inc - advise.module in modules/
advise/ advise.module
File
- includes/
misc.inc, line 1405 - This file contains misc functions for FlightPath
Code
function fp_goto($path, $query = "") {
global $current_student_id;
if ($current_student_id != "" && !strstr($query, "current_student_id=")) {
// If the query doesn't contain the current_student_id, then add it in.
$query .= "¤t_student_id=$current_student_id";
}
// Close the seesion before we try to redirect.
session_write_close();
if ($path == "<front>") {
$path = variable_get("front_page", "main");
}
header('Location: ' . fp_url($path, $query));
exit();
}
