You are here

function _high_contrast_css_exists in High contrast 7

Helper function to find out if the css/high_contrast.css exists.

3 calls to _high_contrast_css_exists()
high_contrast_init in ./high_contrast.module
Implements hook_init().
high_contrast_settings_form in ./high_contrast.module
Settings form.
_high_contrast_get_current_css_styles in ./high_contrast.module
Get default css styles if none exist yet.

File

./high_contrast.module, line 504
High Contrast main module file.

Code

function _high_contrast_css_exists() {
  $theme_path = drupal_get_path('theme', variable_get('theme_default', NULL));
  if (file_exists($theme_path . '/' . HIGH_CONTRAST_CSS_PATH)) {
    return TRUE;
  }
  else {
    return FALSE;
  }
}