function _domain_alias_placeholders_from_sql in Domain Access 7.2
Same name and namespace in other branches
- 6.2 domain_alias/domain_alias.module \_domain_alias_placeholders_from_sql()
- 7.3 domain_alias/domain_alias.module \_domain_alias_placeholders_from_sql()
Replace SQL placeholders % and _ by placeholders * and ?. Opposite of _domain_alias_placeholder_to_sql().
Parameters
$subdomain: String to work on.
Return value
String with replaced values.
3 calls to _domain_alias_placeholders_from_sql()
- domain_alias_list in domain_alias/
domain_alias.module - Returns all aliases for one domain record (domain_id).
- domain_alias_lookup in domain_alias/
domain_alias.module - Runs a lookup against the {domain_alias} table. One of the two values must be present. The database result is limited to one row.
- _domain_alias_validate in domain_alias/
domain_alias.admin.inc - Helper function to validate alias entries.
File
- domain_alias/
domain_alias.module, line 267 - Interface for advanced domain matching for Domain Access.
Code
function _domain_alias_placeholders_from_sql($subdomain) {
return _domain_alias_placeholders_to_sql($subdomain, TRUE);
}