function cdn_cdn_blacklist in CDN 7.2
Same name and namespace in other branches
- 6.2 cdn.module \cdn_cdn_blacklist()
Implementation of hook_cdn_blacklist().
File
- ./
cdn.module, line 666
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*';
// Blacklist SimpleTest paths
$blacklist[] = "*simpletest/verbose/*";
return $blacklist;
}