function _jquery_ui_filter_array_merge in jQuery UI filter 7
Same name and namespace in other branches
- 6 jquery_ui_filter.module \_jquery_ui_filter_array_merge()
Custom array merge function that merge multidimensional arrays.
4 calls to _jquery_ui_filter_array_merge()
- jquery_ui_filter_accordion_get_options in accordion/
jquery_ui_filter_accordion.module - Get jQuery UI accordion options.
- jquery_ui_filter_dialog_get_features in dialog/
jquery_ui_filter_dialog.module - Get jQuery UI dialog features.
- jquery_ui_filter_dialog_get_options in dialog/
jquery_ui_filter_dialog.module - Get jQuery UI dialog options.
- jquery_ui_filter_tabs_get_options in tabs/
jquery_ui_filter_tabs.module - Get jQuery UI tabs options.
File
- ./
jquery_ui_filter.module, line 148 - Converts static HTML to a jQuery UI accordian or tabs widget.
Code
function _jquery_ui_filter_array_merge($destination, $source) {
foreach ($source as $key => $value) {
if (isset($destination[$key]) && is_array($destination[$key]) && is_array($source[$key])) {
$destination[$key] = _jquery_ui_filter_array_merge($destination[$key], $source[$key]);
}
else {
$destination[$key] = $source[$key];
}
}
return $destination;
}