You are here

Functions in CDN 6.2

Primary tabs

Namesort descending Location Description Direct uses Strings
cdn_update_6202 ./cdn.install CDN must run after JavaScript aggregator (weight 9999) in fallback mode.
cdn_update_6203 ./cdn.install More consistent variable names: upgrade path.
cdn_update_6210 ./cdn.install New: File Conveyor PID file variable.
hook_file_url_alter patches/hook_file_url_alter.php Alter the URL to a file.
theme_cdn_page_stats ./theme.inc Render the CDN integration page statistics.
theme_cdn_page_stats_file_link ./theme.inc Render a file link in the CDN integration page statistics.
_cdn_admin_check_requirements ./cdn.admin.inc Helper function to check if the requirements of the CDN module have been met. If any requirement errors exist, they are aggregated into a single error message and are subsequently displayed. 1
_cdn_admin_validate_synced_files_db ./cdn.admin.inc Helper function to validate a possible synced files DB value. 1
_cdn_advanced_get_db_connection ./cdn.advanced.inc Get a connection to the database. 3
_cdn_basic_farfuture_create_directory_structure ./cdn.basic.farfuture.inc file_check_directory() doesn't support creating directory trees. 1
_cdn_basic_farfuture_generate_file ./cdn.basic.farfuture.inc Perform a nested HTTP request to generate a file. 1
_cdn_basic_farfuture_get_mimetype ./cdn.basic.farfuture.inc Determine an Internet Media Type, or MIME type from a filename. Borrowed from Drupal 7. 1
_cdn_basic_farfuture_parse_raw_mapping ./cdn.basic.farfuture.inc Parse the raw (textual) mapping into a lookup table, where the key is the file extension and the value is a list of CDN URLs that serve the file. 1
_cdn_basic_parse_raw_mapping ./cdn.basic.inc Parse the raw (textual) mapping into a lookup table, where the key is the file extension and the value is a list of CDN URLs that serve the file. 2
_cdn_build_css_cache ./cdn.basic.css.inc 1
_cdn_build_css_path ./cdn.basic.css.inc 1 1
_cdn_check_advanced_help ./cdn.admin.inc 1
_cdn_css_aggregate ./cdn.basic.css.inc Mostly based on drupal_get_css(). 1
_cdn_css_file_create_url ./cdn.basic.css.inc Generate CDN file URL without file_create_url() if the core patch has not been applied. 2
_cdn_devel_page_stats ./cdn.stats.inc Collects per-page CDN integration statistics. 2 1
_cdn_eval_pick_server ./cdn.module Helper function to evaluate CDN_PICK_SERVER_PHP_CODE_VARIABLE, when that is being used instead of an actual cdn_pick_server() function. 2
_cdn_fallback_theme_registry_alter ./cdn.fallback.inc Implementation of hook_theme_registry_alter(). 1
_cdn_generate_url_prefix_regex ./cdn.fallback.inc Generate the URL prefix regular expression, that supports all possible types of file URLs: root-relative, protocol-relative and absolute URLs. 3
_cdn_get_hash_salt ./cdn.basic.farfuture.inc Gets a salt useful for hardening. 2
_cdn_help ./cdn.admin.inc 2
_cdn_hmac_base64 ./cdn.basic.farfuture.inc Calculates a base-64 encoded, URL-safe sha-256 hmac. 2
_cdn_html_alter_file_url ./cdn.fallback.inc Alter the file URLs in a piece of HTML given a regexp pattern and some additional parameters. 3
_cdn_prefetch_dns ./cdn.module Helper function to add DNS prefetching to the page. 1
_cdn_requirements_check_patch_applied ./cdn.requirements.inc Check if a patch has been applied, given a set of patterns. 2
_cdn_requirements_core_patch_patterns ./cdn.requirements.inc Generates the patterns for the core patch. 1
_cdn_requirements_detect_fallback ./cdn.requirements.inc Detect whether the fallback mechanism (to alter file URLs, the best mechanism is the core patch, but a fallback to the theme layer is included) should be enabled or disabled, and actually enable/disable it, too. 1
_cdn_requirements_generate_patterns_for_patch ./cdn.requirements.inc Generate patterns for a patch, given the full path to a patch. This effectively parses the patch and stores it in a meaningful structure. 1
_cdn_requirements_generate_requirement_for_patch ./cdn.requirements.inc Generates a requirement for the given patch. 1
_cdn_requirements_get_integration_mechanism ./cdn.requirements.inc Get the integration mechanism that is currently being used by the CDN integration module. 2
_cdn_requirements_is_patched_distribution ./cdn.requirements.inc Checks if the used Drupal distribution is already patched or not. (This is the case when either Pressflow or Cocomore is being used). 3
_cdn_settings_form_prepare ./cdn.admin.inc 3
_cdn_transfer_file ./cdn.basic.farfuture.inc Variant of Drupal's file_transfer(), based on http://www.thomthom.net/blog/2007/09/php-resumable-download-server/ to support ranged requests as well. 1
_cdn_ufi_deployment_id ./cdn.module Callback for generating a unique file identifier. 1

Pages

Other projects