You are here

function _iconizer_get_theme_path in Iconizer 5

Same name and namespace in other branches
  1. 6 iconizer.module \_iconizer_get_theme_path()
  2. 7 iconizer.module \_iconizer_get_theme_path()
3 calls to _iconizer_get_theme_path()
_iconizer_admin_css in ./iconizer.module
_iconizer_files_css in ./iconizer.module
_iconizer_proto_css in ./iconizer.module

File

./iconizer.module, line 205

Code

function _iconizer_get_theme_path($theme, $part) {
  $default = drupal_get_path('module', 'iconizer');
  if ($theme == 'default') {
    return $default;
  }
  elseif (variable_get('iconizer_themes_enable', 0) != 0 && variable_get('iconizer_' . $part . '_icons_theme', 0) != 0) {
    return variable_get('iconizer_' . $part . '_icons_theme', '');
  }
  else {
    return $default;
  }
}