function advagg_admin_menu_output_alter in Advanced CSS/JS Aggregation 6
Same name and namespace in other branches
- 7.2 advagg.module \advagg_admin_menu_output_alter()
- 7 advagg.module \advagg_admin_menu_output_alter()
Implementation of hook_admin_menu_output_alter().
Add in a cache flush for advagg.
File
- ./
advagg.module, line 281 - Advanced CSS/JS aggregation module
Code
function advagg_admin_menu_output_alter(&$content) {
if (!empty($content['icon']['icon']['flush-cache']['#access']) && !empty($content['icon']['icon']['flush-cache']['requisites']) && empty($content['icon']['icon']['flush-cache']['advagg'])) {
$content['icon']['icon']['flush-cache']['advagg'] = $content['icon']['icon']['flush-cache']['requisites'];
$content['icon']['icon']['flush-cache']['advagg']['#title'] = t('Adv CSS/JS Agg');
$content['icon']['icon']['flush-cache']['advagg']['#href'] = 'admin_menu/flush-cache/advagg';
}
}