You are here

function domain_locale_features_get_options in Domain Locale 7

Sets domain export options consistently.

Return value

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

1 call to domain_locale_features_get_options()
domain_locale_features_export_options in ./domain_locale.features.inc
Implements hook_features_export_options().

File

./domain_locale.module, line 627
Provides domain specific language settings.

Code

function domain_locale_features_get_options() {
  $options = array(
    'wipe-domain-locale-tables' => t('Wipe tables on revert/rebuild'),
    'all-locales' => t('Export all domain locales'),
  );
  foreach (domain_locale_list(FALSE) as $domain_id => $languages) {
    $this_domain = domain_lookup($domain_id);
    foreach ($languages as $language => $weight) {
      $options[$this_domain['machine_name'] . '__locale-placeholder__' . $language] = $this_domain['subdomain'] . '/' . $language;
    }
  }
  return $options;
}