You are here

function _iconizer_get_theme_path in Iconizer 7

Same name and namespace in other branches
  1. 5 iconizer.module \_iconizer_get_theme_path()
  2. 6 iconizer.module \_iconizer_get_theme_path()
3 calls to _iconizer_get_theme_path()
_iconizer_get_admin_css in ./iconizer.module
_iconizer_get_files_css in ./iconizer.module
_iconizer_get_proto_css in ./iconizer.module

File

./iconizer.module, line 150
@author: thePanz ( thePanz@gmail.com )

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;
  }
}