function _prod_check_get_destination in Production check & Production monitor 6
Drupal 7 like version drupal_get_destination() so we actually have a use for it in D6. The D6 version does not return an array!?
2 calls to _prod_check_get_destination()
- prod_check_link_array in ./
prod_check.module - Helper function to generate link array to pass to the t() function
- prod_check_ok_title in ./
prod_check.module - Helper function to generate generic 'settings OK' description.
File
- ./
prod_check.module, line 522
Code
function _prod_check_get_destination() {
if (isset($_REQUEST['destination'])) {
return array(
'destination' => $_REQUEST['destination'],
);
}
else {
// Use $_GET here to retrieve the original path in source form.
$path = isset($_GET['q']) ? $_GET['q'] : '';
$query = drupal_query_string_encode($_GET, array(
'q',
));
if ($query != '') {
$path .= '?' . $query;
}
return array(
'destination' => $path,
);
}
}