_domain_alias_placeholders_to_sql($subdomain, $reverse = FALSE)Replace placeholders * and ? with SQL placeholders % and _
$subdomain String to work on.
String with replaced values.
domain_alias/domain_alias.module, line 239
<?php
function _domain_alias_placeholders_to_sql($subdomain, $reverse = FALSE) {
$placeholders = array('*' => '%', '?' => '_');
if ($reverse) {
return str_replace($placeholders, array_keys($placeholders), $subdomain);
}
else {
return str_replace(array_keys($placeholders), $placeholders, $subdomain);
}
}
?>