function variable_realm_features_export_options in Variable 7
Same name and namespace in other branches
- 7.2 variable_realm/variable_realm.features.inc \variable_realm_features_export_options()
Implements hook_features_export_options().
File
- variable_realm/
variable_realm.features.inc, line 11 - Features support for Variable store.
Code
function variable_realm_features_export_options() {
foreach (variable_realm_info() as $name => $realm) {
$realm_keys = variable_realm_keys($name);
if (count($realm_keys) > 1) {
$options[$name] = $realm['title'] . ': ' . t('all');
}
foreach ($realm_keys as $key => $title) {
$options[$name . ':' . $key] = $realm['title'] . ': ' . $title;
}
}
return $options;
}