You are here

function _css_emimage_process_html in CSS Embedded Images 7

Replace URLs with data URIs in aggregated CSS if optimization is enabled.

1 string reference to '_css_emimage_process_html'
css_emimage_theme_registry_alter in ./css_emimage.module
Implements hook_theme_registry_alter().

File

./css_emimage.module, line 300
CSS Embedded Images module.

Code

function _css_emimage_process_html(&$variables, $hook) {

  // Do not alter the styles if advagg is installed.
  if (module_exists('advagg')) {
    return;
  }
  if (!empty($variables['styles']) && variable_get('preprocess_css', 0)) {
    $variables['styles'] = _css_emimage_process($variables['styles']);
  }
}