You are here

function _mixitup_views_convert_from_mixitup_options in MixItUp Views 7

Convert mixitup options array to needed.

Parameters

array $mixitup_options: Options array in mixitup js style.

Return value

array Converted array of mixitup params.

1 call to _mixitup_views_convert_from_mixitup_options()
mixitup_views_default_options in ./mixitup_views.module
Get default option for mixitup js.

File

./mixitup_views.module, line 178
Provides a Views style plugin for displaying content with Mixitup filtering.

Code

function _mixitup_views_convert_from_mixitup_options(array $mixitup_options) {
  $converted_options = array();
  foreach ($mixitup_options as $cat => $options) {
    foreach ($options as $option => $default_value) {
      $converted_options[$cat . '_' . $option] = $default_value;
    }
  }
  return $converted_options;
}