function advagg_merge_inline_css in Advanced CSS/JS Aggregation 7
Same name and namespace in other branches
- 6 advagg.module \advagg_merge_inline_css()
Merge 2 css arrays together.
Parameters
$array1: first array
$array2: second array
Return value
combined array
2 calls to advagg_merge_inline_css()
- advagg_get_js_css_get_array in ./
advagg.module - Return a large array of the CSS & JS files loaded on this page.
- advagg_process_html_css in includes/
css.inc
File
- ./
advagg.module, line 637 - Advanced CSS/JS aggregation module
Code
function advagg_merge_inline_css($array1, $array2) {
foreach ($array2 as $media => $types) {
foreach ($types as $type => $blobs) {
foreach ($blobs as $prefix => $data) {
foreach ($data as $suffix => $blob) {
$array1[$media][$type][$prefix][$suffix] = $blob;
}
}
}
}
return $array1;
}