function global_filter_array_flatten in Views Global Filter 8
Same name and namespace in other branches
- 7 global_filter.widgets.inc \global_filter_array_flatten()
Quick and dirty way to flatten an array.
Parameters
array $array: the array to enflattenate
Return value
array the flattened array
2 calls to global_filter_array_flatten()
- global_filter_set_instance_widget_value in ./
global_filter.widgets.inc - Set widget instale value.
- global_filter_set_on_session in ./
global_filter.storage.inc - Sets the filter of the supplied name to the supplied value.
File
- ./
global_filter.widgets.inc, line 593 - global_filter.widgets.inc
Code
function global_filter_array_flatten($array) {
foreach ($array as $key => $value) {
$array[$key] = (array) $value;
}
return call_user_func_array('array_merge', $array);
}