function realname_registration_requirements in Realname registration 6.2
Implementation of hook_requirements().
File
- ./
realname_registration.install, line 10 - Install, update and uninstall functions for the realname_registration module.
Code
function realname_registration_requirements($phase) {
$requirements = array();
$t = get_t();
if ($phase == 'runtime') {
if (!module_exists('profile') && !module_exists('content_profile_registration')) {
$message = $t('Enable the core module Profile, or ');
$message .= '<a href="http://drupal.org/project/content_profile">Content profile</a> & Content profile registration ';
$message .= $t('to utilize Realname registration.');
$requirements['realname_registration'] = array(
'title' => $t('Realname registration'),
'value' => $message,
'severity' => REQUIREMENT_ERROR,
);
}
}
return $requirements;
}