function alpha_css_active

cis7 alpha.inc alpha_css_active($css)
cle7 alpha.inc alpha_css_active($css)
elmsmedia7 alpha.inc alpha_css_active($css)
icor7 alpha.inc alpha_css_active($css)
meedjum_blog7 alpha.inc alpha_css_active($css)
mooc7 alpha.inc alpha_css_active($css)

Checks wether a custom CSS file is active in the current theme.

Parameters

$css: The filename of a CSS file.

Return value

Boolean TRUE or FALSE.

1 call to alpha_css_active()
alpha_css_include in sites/all/themes/ulmus/omega/alpha/includes/alpha.inc
Includes all custom CSS files for the current theme.

File

sites/all/themes/ulmus/omega/alpha/includes/alpha.inc, line 305
Helper functions for the Alpha base theme.

Code

function alpha_css_active($css) {
  $theme = alpha_get_theme();

  if (isset($theme->css[$css], $theme->settings['css'][$css]) && $theme->settings['css'][$css] === $css) {
    return TRUE;
  }

  return FALSE;
}
Error | ELMSLN API

Error

×

Error message

  • Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/elmsln_community/api.elmsln.org/includes/common.inc:2791) in drupal_send_headers() (line 1499 of /var/www/html/elmsln_community/api.elmsln.org/includes/bootstrap.inc).
  • Error: Call to undefined function apc_delete() in DrupalAPCCache->clear() (line 289 of /var/www/html/elmsln_community/api.elmsln.org/sites/all/modules/apc/drupal_apc_cache.inc).
The website encountered an unexpected error. Please try again later.