summaryrefslogtreecommitdiff
path: root/modules/system/system.install
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2009-07-27 20:15:35 +0000
committerDries Buytaert <dries@buytaert.net>2009-07-27 20:15:35 +0000
commit93728e5d325371f6ec92213a6207a6bfddfc261b (patch)
tree43286a1ab97fab36e84db888a79e279cf037e725 /modules/system/system.install
parent5468b47b91ee040b35d30f7d8a79c66fba51531d (diff)
downloadbrdo-93728e5d325371f6ec92213a6207a6bfddfc261b.tar.gz
brdo-93728e5d325371f6ec92213a6207a6bfddfc261b.tar.bz2
- Patch #374441 by tic200, Damien Tournoud, scor: refactor Drupal HTML corrector using PHP5's XML/Dom parser.
Diffstat (limited to 'modules/system/system.install')
-rw-r--r--modules/system/system.install11
1 files changed, 11 insertions, 0 deletions
diff --git a/modules/system/system.install b/modules/system/system.install
index 38640dd7e..6e2465fca 100644
--- a/modules/system/system.install
+++ b/modules/system/system.install
@@ -266,6 +266,17 @@ function system_requirements($phase) {
include_once DRUPAL_ROOT . '/includes/unicode.inc';
$requirements = array_merge($requirements, unicode_requirements());
+ // Verify if the DOM PHP 5 extension is available.
+ $has_dom = class_exists('DOMDocument');
+ if (!$has_dom) {
+ $requirements['php_dom'] = array(
+ 'title' => $t('PHP DOM Extension'),
+ 'value' => $t('Not found'),
+ 'severity' => REQUIREMENT_ERROR,
+ 'description' => $t("The DOM extension is part of PHP 5 core, but doesn't seem to be enabled on your system. You need to enable the DOM extension on your PHP installation."),
+ );
+ }
+
if ($phase == 'runtime') {
// Check for update status module.
if (!module_exists('update')) {