1 drupal.inc drupal_clean_css_identifier($identifier, $filter = array(' ' => '-', '_' => '-', '/' => '-', '[' => '-', ']' => ''))

Prepares a string for use as a CSS identifier (element, class, or ID name).

Deprecated

since 1.0.0

See also

backdrop_clean_css_identifier()

Related topics

File

core/includes/drupal.inc, line 919
Contains constants and function wrappers for Drupal 7.x compatibility.

Code

function drupal_clean_css_identifier($identifier, $filter = array(' ' => '-', '_' => '-', '/' => '-', '[' => '-', ']' => '')) {
  return backdrop_clean_css_identifier($identifier, $filter);
}