You are here

function _views_slideshow_ddblock_get_theme_path in Views Slideshow: Dynamic Display Block 6.2

Same name and namespace in other branches
  1. 7.2 \_views_slideshow_ddblock_get_theme_path()

Returns the path to actual site theme in use because path_to_theme is flaky.

2 calls to _views_slideshow_ddblock_get_theme_path()
views_slideshow_ddblock_views_slideshow_options_form in ./
Implements hook_views_slideshow_options_form().
_views_slideshow_ddblock_get_template_size in ./
Get theme sizes of a theme.


./, line 1034
The default options available with Views Slideshow: ddblock.


function _views_slideshow_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;