Merge 2 css arrays together.

Paramètres

$array1: first array

$array2: second array

Return value

combined array

2 calls to advagg_merge_inline_css()
advagg_get_js_css_get_array dans ./advagg.module
Return a large array of the CSS & JS files loaded on this page.
advagg_process_html_css dans includes/css.inc

Fichier

./advagg.module, line 637

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;
}