function _filebrowser_url_query in Filebrowser 6.2
Same name and namespace in other branches
- 8 filebrowser.common.inc \_filebrowser_url_query()
- 7.4 filebrowser.common.inc \_filebrowser_url_query()
- 7.2 filebrowser.common.inc \_filebrowser_url_query()
- 7.3 filebrowser.common.inc \_filebrowser_url_query()
3 calls to _filebrowser_url_query()
- filebrowser_form_create_folder_submit in ./
filebrowser.form.create_folder.inc - create folder submition.
- filebrowser_form_upload_submit in ./
filebrowser.form.upload.inc - uploads submition.
- _filebrowser_folder_url in includes/
helpers.inc - Build an URL with current pager settings.
File
- includes/
helpers.inc, line 141 - Misc helper functions.
Code
function _filebrowser_url_query($options = array()) {
$query = array();
foreach ($_GET as $key => $value) {
if ($key != 'q') {
$query[] = $key . "=" . filter_xss($value);
}
}
if (isset($options['query'])) {
foreach (explode('&', $options['query']) as $item) {
$query[] = $item;
}
}
if (count($query)) {
return implode("&", $query);
}
else {
return '';
}
}