You are here

function biblio_filter_clear in Bibliography Module 6

Same name and namespace in other branches
  1. 5 biblio.module \biblio_filter_clear()
  2. 6.2 biblio.module \biblio_filter_clear()
  3. 7 biblio.module \biblio_filter_clear()
  4. 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);
}