function variable_realm_features_selection in Variable 7
Same name and namespace in other branches
- 7.2 variable_realm/variable_realm.features.inc \variable_realm_features_selection()
Processes export data selections consistently.
Parameters
$data: Array of selections from the features component form.
Return value
An array of realms, keyed by machine_name.
1 call to variable_realm_features_selection()
- variable_realm_features_export in variable_realm/
variable_realm.features.inc - Implements hook_features_export().
File
- variable_realm/
variable_realm.features.inc, line 50 - Features support for Variable store.
Code
function variable_realm_features_selection($data) {
$list = array();
foreach ($data as $machine_name) {
if (strpos($machine_name, ':')) {
$list[] = $machine_name;
}
else {
foreach (variable_realm_keys($machine_name) as $key => $title) {
$list[] = "{$machine_name}:{$key}";
}
}
}
return $list;
}