function advagg_admin_menu_output_alter in Advanced CSS/JS Aggregation 7
Same name and namespace in other branches
- 6 advagg.module \advagg_admin_menu_output_alter()
- 7.2 advagg.module \advagg_admin_menu_output_alter()
Implements hook_admin_menu_output_alter().
Add in a cache flush for advagg.
File
- ./
advagg.module, line 94 - 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';
}
}