function cdn_element_info_alter in CDN 7.2
Implements hook_element_info_alter().
File
- ./
cdn.module, line 236
Code
function cdn_element_info_alter(&$type) {
if (!cdn_status_is_enabled()) {
return;
}
$mode = variable_get(CDN_MODE_VARIABLE, CDN_MODE_BASIC);
if ($mode == CDN_MODE_BASIC) {
// Override Drupal's CSS aggregation system.
cdn_load_include('basic.css');
$type['styles']['#aggregate_callback'] = '_cdn_aggregate_css';
}
}