function path_alias_xt_requirements in Extended Path Aliases 7
Same name and namespace in other branches
- 6 path_alias_xt.install \path_alias_xt_requirements()
Implements hook_requirements().
File
- ./
path_alias_xt.install, line 11 - Install and uninstall hooks for path_alias_xt module.
Code
function path_alias_xt_requirements($phase) {
$t = get_t();
$has_runkit = function_exists('runkit_function_redefine');
$requirements['path_alias_xt'] = array(
'title' => $t('PECL runkit (for Extended Path Aliases)'),
'value' => $has_runkit ? $t('Installed') : $t('Not installed'),
);
if (!$has_runkit) {
$requirements['path_alias_xt']['severity'] = REQUIREMENT_INFO;
$requirements['path_alias_xt']['description'] = $t('Reminder: the PECL runkit is not installed. If, in addition to the already enabled basic functions, you want this module\'s advanced features to be operational, please edit file %path-inc, if you have not done so already. See the <a href="!README">README</a> file for details.', array(
'%path-inc' => 'include/path.inc',
'!README' => url(drupal_get_path('module', 'path_alias_xt') . '/README.txt', array(
'alias' => TRUE,
)),
));
}
return $requirements;
}