function domain_update_machine_name in Domain Access 7.3
Generates a machine name during the update process.
Parameters
$subdomain: The subdomain string of the record, which should be unique.
Return value
A string with dot and colon transformed to underscore.
1 call to domain_update_machine_name()
- domain_update_7306 in ./
domain.install - Insert existing domain records into {domain_export} and {domain}.
File
- ./
domain.install, line 380 - Install file.
Code
function domain_update_machine_name($subdomain) {
return preg_replace('/[^a-z0-9_]+/', '_', $subdomain);
}