Commit ac8e3e22 authored by Steve Gerbino's avatar Steve Gerbino

hook_requirements is unnecessary in the 7.x release and should have

been removed.
parent 139fc2ef
......@@ -4,29 +4,6 @@
* Install, update and uninstall functions for the realname_registration module.
*/
/**
* Implementation of hook_requirements().
*/
function realname_registration_requirements($phase) {
$requirements = array();
$t = get_t();
if ($phase == 'runtime') {
if (!module_exists('profile') && !module_exists('profile2')) {
$message = $t('Enable the core module Profile, or ');
$message .= '<a href="http://drupal.org/project/profile2">Profile2</a> ';
$message .= $t('to utilize Realname registration.');
$requirements['realname_registration'] = array(
'title' => $t('Realname registration'),
'value' => $message,
'severity' => REQUIREMENT_ERROR,
);
}
}
return $requirements;
}
/**
* Implementation of hook_install().
*/
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment