You are here

function advagg_merge_inline_css in Advanced CSS/JS Aggregation 6

Same name and namespace in other branches
  1. 7 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_processor in ./advagg.module
Process variables for page.tpl.php

File

./advagg.module, line 510
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;
}