You are here

function bynder_filters_json in Bynder 7

Return entered filters.

1 call to bynder_filters_json()
bynder_generate_search in includes/bynder.browser.inc
Generate search page.

File

includes/bynder.browser.inc, line 359
Manages the Bynder media browser functionality

Code

function bynder_filters_json($state) {
  $filters = array();
  if (isset($state['values']['filters'])) {
    $filters_json = json_decode($state['values']['filters']);
  }
  if (isset($filters_json->filters)) {
    $filters = $filters_json->filters;
  }
  return $filters;
}