You are here

function cdn_cdn_blacklist in CDN 6.2

Same name and namespace in other branches
  1. 7.2 cdn.module \cdn_cdn_blacklist()

Implementation of hook_cdn_blacklist().

File

./cdn.module, line 474

Code

function cdn_cdn_blacklist() {
  $blacklist = array();

  // Blacklist wysiwyg library files.
  if (module_exists('wysiwyg')) {
    foreach (wysiwyg_get_all_editors() as $editor) {
      if (!$editor['installed']) {
        continue;
      }
      $blacklist[] = $editor['library path'] . '/*';
    }
  }

  // Blacklist Image CAPTCHA' dynamically generated CAPTCHA images.
  $blacklist[] = 'image_captcha*';
  return $blacklist;
}