You are here

function agrcache_theme_registry_alter in Aggregate cache 7

Implements hook_theme_registry_alter().

File

./agrcache.module, line 39
Provides imagecache style generation of css/js aggregates.

Code

function agrcache_theme_registry_alter(&$theme_registry) {

  // For JavaScript there is no nice hook_elements() implementation to hook
  // into, aggregation is done inline in drupal_get_js(). So instead take over
  // template_preprocess_html.
  // @see http://drupal.org/node/330082
  // @see http://drupal.org/node/352951
  $index = array_search('template_process_html', $theme_registry['html']['process functions']);
  $theme_registry['html']['process functions'][$index] = '_agrcache_process_html';
}