You are here

function bootstrap_gallery_get_options in Bootstrap - Photo Gallery 7.3

Set default options.

5 calls to bootstrap_gallery_get_options()
bootstrap_gallery_preprocess_views_view_field in ./bootstrap_gallery.module
Prepare Gallery image field wrapper @TODO: add video field support
template_preprocess_views_view_bootstrap_gallery in ./bootstrap_gallery.module
Build grid Gallery and add necessary scripts and styles.
views-view-bootstrap-gallery.tpl.php in ./views-view-bootstrap-gallery.tpl.php
views-view-bootstrap-gallery.tpl.php in theme/views-view-bootstrap-gallery.tpl.php
views_bootstrap_gallery_plugin_style_bootstrap_gallery::options_form in ./views_bootstrap_gallery_plugin_style_bootstrap_gallery.inc
Render the given style.

File

./bootstrap_gallery.module, line 24

Code

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