You are here

function bean_get_filter in Bean (for Drupal 7) 7

Get the filter

2 calls to bean_get_filter()
bean_filter_form in includes/bean.pages.inc
bean_list in includes/bean.pages.inc

File

includes/bean.pages.inc, line 630
Bean Functions

Code

function bean_get_filter() {

  // Pull any saved values from the session.
  $filters = isset($_SESSION['bean-filter']) ? $_SESSION['bean-filter'] : array();

  // ...fill in gaps with default values.
  return $filters + array(
    'types' => array(),
    'per_page' => 50,
  );
}