function itweak_upload_progress_implementation in iTweak Upload 6.2
Determine which upload progress implementation to use, if any available.
4 calls to itweak_upload_progress_implementation()
- itweak_upload_progress in ./
itweak_upload.module - Menu callback for upload progress.
- itweak_upload_requirements in ./
itweak_upload.install - Implementation of hook_requirements()
- _itweak_upload_add_progressbar in ./
itweak_upload.module - _itweak_upload_admin_settings in ./
itweak_upload.admin.inc - Administration settings form worker code.
File
- ./
itweak_upload.module, line 1388 - iTweakUpload - Tweak attachments display and file upload forms.
Code
function itweak_upload_progress_implementation() {
static $implementation;
if (!isset($implementation)) {
$implementation = FALSE;
// We prefer the PECL extension uploadprogress because it supports multiple
// simultaneous uploads. APC only supports one at a time.
if (extension_loaded('uploadprogress')) {
$implementation = 'uploadprogress';
}
elseif (extension_loaded('apc') && ini_get('apc.rfc1867')) {
$implementation = 'apc';
}
}
return $implementation;
}