You are here

function views_responsive_grid_get_options in Views Responsive Grid 7

Set default options.

2 calls to views_responsive_grid_get_options()
template_preprocess_views_view_responsive_grid in ./views_responsive_grid.module
Display a view as a responsive grid style.
views_responsive_grid_plugin_style_responsive_grid::options_form in ./views_responsive_grid_plugin_style_responsive_grid.inc
Render the given style.

File

./views_responsive_grid.module, line 18
Provides a Views style plugin to display content in a responsive grid.

Code

function views_responsive_grid_get_options($array) {
  $options = array();
  foreach ($array as $key => $value) {
    if (!is_array($value)) {
      $options[$key] = $value;
    }
    else {
      $options = array_merge($options, views_responsive_grid_get_options($value));
    }
  }
  return $options;
}