You are here

function cdn_exit in CDN 5

Same name and namespace in other branches
  1. 6.2 cdn.module \cdn_exit()
  2. 6 cdn.module \cdn_exit()
  3. 7.2 cdn.module \cdn_exit()

Implementation of hook_exit().

File

./cdn.module, line 124

Code

function cdn_exit($destination = NULL) {
  if (!$destination && variable_get('cdn_dev_page_stats', 0) && user_access('access per-page statistics')) {
    list($file_count, $remote_file_count, $local_files, $remote_files, $synced_files, $unsynced_files, ) = _cdn_devel_page_stats();
    print theme('cdn_page_stats', $file_count, $remote_file_count, $local_files, $remote_files, $synced_files, $unsynced_files);
  }
}