function _taxonomy_menu_flatten_form_settings in Taxonomy menu 8
Same name and namespace in other branches
- 7.2 taxonomy_menu.admin.inc \_taxonomy_menu_flatten_form_settings()
Flatten an array of submitted values.
Parameters
array $settings: An array of settings to be flattened.
Return value
array A flattened array of settings.
1 call to _taxonomy_menu_flatten_form_settings()
- taxonomy_menu_vocab_submit in ./
taxonomy_menu.admin.inc - Form submission handler for taxonomy_form_vocabulary().
File
- ./
taxonomy_menu.admin.inc, line 339 - Administrative page callbacks for the Taxonomy menu module.
Code
function _taxonomy_menu_flatten_form_settings($settings) {
array_walk_recursive($settings, function ($a, $b) use (&$flatten) {
$flatten[$b] = $a;
});
return $flatten;
}