You are here

function _views_slideshow_ddblock_get_template_size in Views Slideshow: Dynamic Display Block 6.2

Same name and namespace in other branches
  1. 7.2 views_slideshow_ddblock.views_slideshow.inc \_views_slideshow_ddblock_get_template_size()

Get theme sizes of a theme.

Parameters

$theme: Slidehsow theme.

Return value

An array containing the theme sizes.

1 call to _views_slideshow_ddblock_get_template_size()
views_slideshow_ddblock_views_slideshow_options_form in ./views_slideshow_ddblock.views_slideshow.inc
Implements hook_views_slideshow_options_form().

File

./views_slideshow_ddblock.views_slideshow.inc, line 932
The default options available with Views Slideshow: ddblock.

Code

function _views_slideshow_ddblock_get_template_size($theme) {
  $path_to_themes = _views_slideshow_ddblock_get_theme_path() . '/custom/modules/views_slideshow_ddblock/' . $theme;
  $dirs = _dir_scan_directory($path_to_themes, 'siz');
  if (!empty($dirs)) {
    asort($dirs);
    foreach ($dirs as $dir) {
      $options[$dir] = $dir;
    }
  }
  else {
    $options['default'] = 'Default';
  }
  $options['custom'] = 'Custom';
  return $options;
}