You are here

function biblio_filter_clear in Bibliography Module 7.2

Same name and namespace in other branches
  1. 5 biblio.module \biblio_filter_clear()
  2. 6.2 biblio.module \biblio_filter_clear()
  3. 6 biblio.module \biblio_filter_clear()
  4. 7 biblio.module \biblio_filter_clear()

Page callback for base/filter/clear in hook_menu().

File

./biblio.module, line 972

Code

function biblio_filter_clear() {
  $options = array();
  $_SESSION['biblio_filter'] = array();
  $base = variable_get('biblio_base', 'biblio');
  if (isset($_GET['sort'])) {
    $options['sort'] = $_GET['sort'];
  }
  if (isset($_GET['order'])) {
    $options['order'] = $_GET['order'];
  }
  drupal_goto($base, $options);
}