From ac30bf8a82adf6a5c5b76e18ab46edf7f376ce40 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Sat, 29 Aug 2009 12:52:32 +0000 Subject: - Patch #391330 by quicksketch, drewish et al: file module to core. Yaaa-a-a-y! --- modules/file/file.install | 61 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 61 insertions(+) create mode 100644 modules/file/file.install (limited to 'modules/file/file.install') diff --git a/modules/file/file.install b/modules/file/file.install new file mode 100644 index 000000000..4ee5ef0c5 --- /dev/null +++ b/modules/file/file.install @@ -0,0 +1,61 @@ +apc.rfc1867 = 1 to your php.ini configuration. Alternatively, it is recommended to use PECL uploadprogress, which supports more than one simultaneous upload.'); + $severity = REQUIREMENT_INFO; + } + elseif (!$implementation) { + $value = t('Not enabled'); + $description = t('Your server is capable of displaying file upload progress, but does not have the required libraries. It is recommended to install the PECL uploadprogress library (preferred) or to install APC.'); + $severity = REQUIREMENT_INFO; + } + elseif ($implementation == 'apc') { + $value = t('Enabled (APC RFC1867)'); + $description = t('Your server is capable of displaying file upload progress using APC RFC1867. Note that only one upload at a time is supported. It is recommended to use the PECL uploadprogress library if possible.'); + $severity = REQUIREMENT_OK; + } + elseif ($implementation == 'uploadprogress') { + $value = t('Enabled (PECL uploadprogress)'); + $severity = REQUIREMENT_OK; + } + $requirements['file_progress'] = array( + 'title' => t('Upload progress'), + 'value' => $value, + 'severity' => $severity, + 'description' => $description, + ); + } + + return $requirements; +} -- cgit v1.2.3