You are here

function bynder_facet_active in Bynder 7

1 call to bynder_facet_active()
bynder_generate_facets_link in includes/bynder.browser.inc
Generate links for facets.

File

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

Code

function bynder_facet_active($selected_facets, $current_facet) {
  if (isset($selected_facets[key($current_facet)])) {
    return in_array($current_facet[key($current_facet)][0], explode(',', $selected_facets[key($current_facet)][0]));
  }
  else {
    return false;
  }
}