function advagg_hooks_implemented

cis7 advagg.module advagg_hooks_implemented($all = TRUE)
cle7 advagg.module advagg_hooks_implemented($all = TRUE)
elmsmedia7 advagg.module advagg_hooks_implemented($all = TRUE)
icor7 advagg.module advagg_hooks_implemented($all = TRUE)
meedjum_blog7 advagg.module advagg_hooks_implemented($all = TRUE)
mooc7 advagg.module advagg_hooks_implemented($all = TRUE)

Get back what hooks are implemented.

Parameters

bool $all: If TRUE get all hooks related to css/js files. if FALSE get only the subset of hooks that alter the filename/contents.

Return value

array List of hooks and what modules have implemented them.

2 calls to advagg_hooks_implemented()
advagg_admin_info_form in sites/all/modules/ulmus/advagg/advagg.admin.inc
Form builder; Show info about advagg and advagg settings.
advagg_current_hooks_hash_array in sites/all/modules/ulmus/advagg/advagg.module
Get an array of all hooks and settings that affect aggregated files contents.

File

sites/all/modules/ulmus/advagg/advagg.module, line 1693
Advanced CSS/JS aggregation module.

Code

function advagg_hooks_implemented($all = TRUE) {
  // Get hooks in use.
  $hooks = array(
    'advagg_get_css_file_contents_alter' => array(),
    'advagg_get_css_aggregate_contents_alter' => array(),
    'advagg_get_js_file_contents_alter' => array(),
    'advagg_get_js_aggregate_contents_alter' => array(),
    'advagg_save_aggregate_alter' => array(),
    'advagg_current_hooks_hash_array_alter' => array(),
    'advagg_get_root_files_dir_alter' => array(),
    'advagg_context_alter' => array(),
  );
  if ($all) {
    $hooks += array(
      'advagg_build_aggregate_plans_alter' => array(),
      'advagg_changed_files' => array(),
      'advagg_css_groups_alter' => array(),
      'advagg_js_groups_alter' => array(),
      'advagg_modify_css_pre_render_alter' => array(),
      'advagg_modify_js_pre_render_alter' => array(),
      'js_alter' => array(),
      'css_alter' => array(),
    );
  }
  // Call hook_advagg_hooks_implemented_alter().
  drupal_alter('advagg_hooks_implemented', $hooks, $all);

  // Cache module_implements as this will load up .inc files.
  $cid = 'advagg_hooks_implemented:' . (int) $all . ':' . drupal_hash_base64(serialize($hooks));
  $cache = cache_get($cid, 'cache_bootstrap');
  if (!empty($cache->data)) {
    $hooks = $cache->data;
  }
  else {
    foreach ($hooks as $hook => $values) {
      $hooks[$hook] = module_implements($hook);
    }
    cache_set($cid, $hooks, 'cache_bootstrap', CACHE_TEMPORARY);
  }

  return $hooks;
}
Error | ELMSLN API

Error

×

Error message

  • Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/elmsln_community/api.elmsln.org/includes/common.inc:2791) in drupal_send_headers() (line 1499 of /var/www/html/elmsln_community/api.elmsln.org/includes/bootstrap.inc).
  • Error: Call to undefined function apc_delete() in DrupalAPCCache->clear() (line 289 of /var/www/html/elmsln_community/api.elmsln.org/sites/all/modules/apc/drupal_apc_cache.inc).
The website encountered an unexpected error. Please try again later.