Same name in other branches
  1. 8.x-2.x advagg.module \advagg_hook_info()

Implements hook_hook_info().

Fichier

./advagg.module, line 573

Code

function advagg_hook_info() {
    // List of hooks that can be inside of *.advagg.inc files.
    // All advagg hooks except for:
    // advagg_current_hooks_hash_array_alter
    // advagg_hooks_implemented_alter
    // advagg_get_root_files_dir_alter
    // because these 3 hooks are used on most requests.
    $advagg_hooks = array(
        'advagg_get_css_file_contents_pre_alter',
        'advagg_get_css_file_contents_alter',
        'advagg_get_js_file_contents_alter',
        'advagg_get_css_aggregate_contents_alter',
        'advagg_get_js_aggregate_contents_alter',
        'advagg_save_aggregate_pre_alter',
        'advagg_save_aggregate_alter',
        'advagg_build_aggregate_plans_alter',
        'advagg_build_aggregate_plans_post_alter',
        'advagg_css_groups_alter',
        'advagg_js_groups_alter',
        'advagg_modify_css_pre_render_alter',
        'advagg_modify_js_pre_render_alter',
        'advagg_changed_files',
        'advagg_removed_aggregates',
        'advagg_scan_for_changes',
        'advagg_get_info_on_files_alter',
        'advagg_context_alter',
        'advagg_missing_root_file',
    );
    $hooks = array();
    foreach ($advagg_hooks as $hook) {
        $hooks[$hook] = array(
            'group' => 'advagg',
        );
    }
    return $hooks;
}