function DrupalHTMLIdentifierTestCase::setAllowCSSDoubleUnderscores

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 drupal/modules/simpletest/tests/common.test
Tests that drupal_clean_css_identifier() cleans the identifier properly.

File

drupal/modules/simpletest/tests/common.test, line 972
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');
}