function variable_realm_features_export_options in Variable 7.2
Same name and namespace in other branches
- 7 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) {
$controller = variable_realm_controller($name);
$realm_keys = $controller
->getAllKeys();
if (count($realm_keys) > 1) {
$options[$name] = $controller
->getTitle() . ': ' . t('all');
}
foreach ($realm_keys as $key => $title) {
$options[$name . ':' . $key] = $controller
->getTitle() . ': ' . $title;
}
}
return $options;
}