You are here

function boxes_get_filter in Boxes 7.2

Get the filter

2 calls to boxes_get_filter()
boxes_filter_form in includes/boxes.pages.inc
boxes_list in includes/boxes.pages.inc
Render a listing of all Boxes.

File

includes/boxes.pages.inc, line 468
Box Functions

Code

function boxes_get_filter() {

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

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