function _token_clean_css_identifier in Token 6
Same name and namespace in other branches
- 7 token.pages.inc \_token_clean_css_identifier()
1 call to _token_clean_css_identifier()
- _token_token_tree_format_row in ./
token.pages.inc - Build a row in the token tree.
File
- ./
token.pages.inc, line 147 - User page callbacks for the token module.
Code
function _token_clean_css_identifier($id) {
return 'token-' . rtrim(str_replace(array(
'][',
'_',
' ',
':',
), '-', trim($id, '[]')), '-');
}