function DrupalHTMLIdentifierTestCase::setAllowCSSDoubleUnderscores in Drupal 7
Set the variable allow_css_double_underscores and reset the cache.
Parameters
$value bool: A new value to be set to allow_css_double_underscores.
1 call to DrupalHTMLIdentifierTestCase::setAllowCSSDoubleUnderscores()
- DrupalHTMLIdentifierTestCase::testDrupalCleanCSSIdentifier in modules/
simpletest/ tests/ common.test - Tests that drupal_clean_css_identifier() cleans the identifier properly.
File
- modules/
simpletest/ tests/ common.test, line 1004 - Tests for common.inc functionality.
Class
- DrupalHTMLIdentifierTestCase
- Test for cleaning HTML identifiers.
Code
function setAllowCSSDoubleUnderscores($value) {
$GLOBALS['conf']['allow_css_double_underscores'] = $value;
drupal_static_reset('drupal_clean_css_identifier:allow_css_double_underscores');
}