Merge 2 css arrays together.

Paramètres

$array1: first array

$array2: second array

Return value

combined array

Fichier

./advagg.module, line 614

Code

function advagg_merge_css($array1, $array2) {
    if (!empty($array2)) {
        foreach ($array2 as $media => $types) {
            foreach ($types as $type => $files) {
                foreach ($files as $file => $preprocess) {
                    $array1[$media][$type][$file] = $preprocess;
                }
            }
        }
    }
    return $array1;
}