You are here

function domain_features_get_options in Domain Access 7.3

Sets domain export options consistently.

Return value

An array of form options. Not that we cannot use _ in keys.

4 calls to domain_features_get_options()
domain_alias_features_export_options in domain_alias/domain_alias.features.inc
Implements hook_features_export_options().
domain_conf_features_export_options in domain_conf/domain_conf.features.inc
Implements hook_features_export_options().
domain_features_export_options in ./domain.features.inc
Implements hook_features_export_options().
domain_theme_features_export_options in domain_theme/domain_theme.features.inc
Implements hook_features_export_options().

File

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

Code

function domain_features_get_options() {
  $options = array(
    'wipe-domain-tables' => t('Wipe tables on revert/rebuild'),
    'all-domains' => t('Export all domains'),
  );
  foreach (domain_domains() as $domain) {
    $options[$domain['machine_name']] = $domain['subdomain'];
  }
  return $options;
}