function biblio_filter_clear in Bibliography Module 6
Same name and namespace in other branches
- 5 biblio.module \biblio_filter_clear()
- 6.2 biblio.module \biblio_filter_clear()
- 7 biblio.module \biblio_filter_clear()
- 7.2 biblio.module \biblio_filter_clear()
1 string reference to 'biblio_filter_clear'
- biblio_menu in ./
biblio.module - Implementation of hook_menu().
File
- ./
biblio.module, line 1028
Code
function biblio_filter_clear() {
$_SESSION['biblio_filter'] = array();
$base = variable_get('biblio_base', 'biblio');
if (isset($_GET['sort'])) {
$options .= "sort=" . $_GET['sort'];
}
if (isset($_GET['order'])) {
$options .= $options['query'] ? "&" : "";
$options .= "order=" . $_GET['order'];
}
drupal_goto($base, $options);
}