function _ddblock_get_template_size in Dynamic display block 7
Get theme sizes of a theme.
Parameters
$theme: Slidehsow theme.
Return value
An array containing the theme sizes.
1 call to _ddblock_get_template_size()
- ddblock_form_alter in ./
ddblock.module - Implements hook_form_alter().
File
- ./
ddblock.module, line 2823 - Enables your site to display dynamic content in a block.
Code
function _ddblock_get_template_size($theme) {
$path_to_themes = _ddblock_get_theme_path() . '/custom/modules/ddblock/' . $theme;
$dirs = _ddblock_dir_scan_directory($path_to_themes, 'siz');
if (!empty($dirs)) {
asort($dirs);
foreach ($dirs as $dir) {
$options[$dir] = $dir;
}
}
else {
$options['default'] = 'Default';
}
return $options;
}