function xmlsitemap_node_requirements in XML sitemap 5
Implementation of hook_requirements().
File
- xmlsitemap_node/
xmlsitemap_node.install, line 6
Code
function xmlsitemap_node_requirements($phase) {
$t = get_t();
$requirements = array();
if (in_array($GLOBALS['db_type'], array(
'mysql',
'mysqli',
)) && version_compare(db_version(), '4.0.14') < 0) {
$requirements['xmlsitemap_node_sql'] = array(
'title' => $t('XML Sitemap: Node'),
'value' => $t('Your MySQL version is too low. “XML Sitemap: Node” requires MySQL 4.0.14 or higher.'),
'severity' => REQUIREMENT_ERROR,
);
}
return $requirements;
}