drupal_html_class
- Versions
- 7
drupal_html_class($class)
Prepare a string for use as a valid class name.
Do not pass one string containing multiple classes as they will be incorrectly concatenated with dashes, i.e. "one two" will become "one-two".
Parameters
$class The class name to clean.
Return value
The cleaned class name.
Code
includes/common.inc, line 3552
<?php
function drupal_html_class($class) {
return drupal_clean_css_identifier(drupal_strtolower($class));
}
?>Login or register to post comments 