function _ddblock_get_theme_path in Dynamic display block 7
Returns the path to actual site theme in use because path_to_theme is flaky.
2 calls to _ddblock_get_theme_path()
- ddblock_form_alter in ./
ddblock.module - Implements hook_form_alter().
- _ddblock_get_template_size in ./
ddblock.module - Get theme sizes of a theme.
File
- ./
ddblock.module, line 2713 - Enables your site to display dynamic content in a block.
Code
function _ddblock_get_theme_path() {
// path_to_theme gives the path to the admin theme when a different one is used.
// As a band-aid solution, this will pull the default theme out of the
// database and use that. (got this from advanced_forum module, in this case always
// use the default theme from database)
static $theme_path;
if (!$theme_path) {
$default_theme = variable_get('theme_default', 'garland');
$theme_path = drupal_get_path('theme', $default_theme);
}
return $theme_path;
}