summaryrefslogtreecommitdiff
path: root/modules/system/system.install
diff options
context:
space:
mode:
authorAngie Byron <webchick@24967.no-reply.drupal.org>2010-01-09 22:01:42 +0000
committerAngie Byron <webchick@24967.no-reply.drupal.org>2010-01-09 22:01:42 +0000
commit20bac50d4a67dc44b2a40f03162a4d0d244448ce (patch)
treedb45dd0186bc2d2a26a1c806539530dfea274345 /modules/system/system.install
parent147bb1389a18eca73015390cc46a5fe03abfcb88 (diff)
downloadbrdo-20bac50d4a67dc44b2a40f03162a4d0d244448ce.tar.gz
brdo-20bac50d4a67dc44b2a40f03162a4d0d244448ce.tar.bz2
#299308 by redndahead, Dave Reid, dropcube, catch, redndahead, and dbabbage: Add POD to installation requirements.
Diffstat (limited to 'modules/system/system.install')
-rw-r--r--modules/system/system.install13
1 files changed, 13 insertions, 0 deletions
diff --git a/modules/system/system.install b/modules/system/system.install
index 47ee14415..9b155b702 100644
--- a/modules/system/system.install
+++ b/modules/system/system.install
@@ -94,6 +94,19 @@ function system_requirements($phase) {
else {
$requirements['php_register_globals']['value'] = $t('Disabled');
}
+
+ // Test PDO library availability.
+ $requirements['pdo'] = array(
+ 'title' => $t('PDO library'),
+ );
+ if (extension_loaded('pdo')) {
+ $requirements['pdo']['value'] = $t('Enabled');
+ }
+ else {
+ $requirements['pdo']['value'] = $t('Disabled');
+ $requirements['pdo']['severity'] = REQUIREMENT_ERROR;
+ $requirements['pdo']['description'] = $t('Your server does not have the PHP PDO extension enabled. See the <a href="@system_requirements">system requirements page</a> for more information.', array('@system_requirements' => 'http://drupal.org/requirements'));
+ }
// Test PHP memory_limit
$memory_limit = ini_get('memory_limit');