function media_create_id in D7 Media 6
Sanitize the incoming name to be used for a html #id.
Parameters
string $drawer_name:
Return value
string
File
- ./
media.module, line 522 - Media API
Code
function media_create_id($drawer_name) {
return str_replace(array(
' ',
"'",
'"',
"%",
"<",
">",
), '', $drawer_name);
}