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

File

modules/simpletest/tests/common.test, line 1054

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

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.