function domain_machine_names in Domain Access 7.3
Loads an array of all active machine names.
4 calls to domain_machine_names()
- domain_alias_features_export_render in domain_alias/
domain_alias.features.inc - Implements hook_features_export_render().
- domain_conf_features_export_render in domain_conf/
domain_conf.features.inc - Implements hook_features_export_render().
- domain_features_export_render in ./
domain.features.inc - Implements hook_features_export_render().
- domain_theme_features_export_render in domain_theme/
domain_theme.features.inc - Implements hook_features_export_render().
File
- ./
domain.module, line 3831 - Core module functions for the Domain Access suite.
Code
function domain_machine_names() {
$list =& drupal_static(__FUNCTION__);
if (isset($list)) {
return $list;
}
$machine_names = db_query("SELECT machine_name FROM {domain_export}")
->fetchAll();
foreach ($machine_names as $machine_name) {
$list[] = $machine_name->machine_name;
}
return $list;
}