You are here

function domain_load_machine_name in Domain Access 7.3

Loads a machine name from its domain id.

Parameters

$domain_id: The id of the domain record.

Return value

A Domain machine name.

2 calls to domain_load_machine_name()
domain_alias_prepare_export in domain_alias/domain_alias.features.inc
Prepares alias lists to an array based on machine_name.
domain_theme_prepare_export in domain_theme/domain_theme.features.inc
Prepares theme data as an export array.

File

./domain.module, line 3852
Core module functions for the Domain Access suite.

Code

function domain_load_machine_name($domain_id) {
  return db_query('SELECT machine_name FROM {domain_export} WHERE domain_id = :domain_id', array(
    ':domain_id' => $domain_id,
  ))
    ->fetchField();
}