In order for the JS settings to be registered when Advanced CSS/JS Aggregation module is enabled, these modifications are needed inside template.php file within function omega_js_alter(&$javascript).

Original:

  $javascript['settings']['data'][] = array(
    'omega_breakpoints' => array(
      'layouts' => $layouts,
    ),
    'omega' => array(
      'activeLayout' => $activeLayout,
      'activeTheme' => $theme
    ) 
  );

Must be changed to:

  drupal_add_js(
    array(
      'omega_breakpoints' => array(
        'layouts' => $layouts,
      ),
    ),
    'setting'
  );
  
    drupal_add_js(
    array(
      'omega' => array(
        'activeLayout' => $activeLayout,
        'activeTheme' => $theme,
      ),
    ),
    'setting'
  );

If not, the omega & omega_breakpoints objects are not added to Drupal.Settings if Advagg is enabled. Any idea why this is happening? Thanks.

Comments

W.M.’s picture

Title: A code modification is needed for this module to work with Advagg module » A code modification is needed for this theme to work with Advagg module
Related issues: +#2543434: Omega theme settings cannot be added to Druapl.Settings JS object if this module is enabled

No code modification is needed to this theme. This issue was solved by a recent comment to Advagg module (currently available under Advagg dev version).

mikeytown2’s picture

Status: Active » Closed (works as designed)

Going to close this out. Hopefully the next advagg version will be released soon.