Commit c155eafb authored by Steve Gerbino's avatar Steve Gerbino

Added an implementation of hook_help().

parent a7db3dce
......@@ -25,6 +25,48 @@ function realname_registration_enable() {
}
}
/**
* Implement hook_help().
*/
function realname_registration_help($path, $arg) {
switch ($path) {
case 'admin/help#realname_registration':
$output .= '<h4>' . t('Summary') . '</h4>';
$output .= '<p>' . t('Usernames are made of a combination of the first name, middle name, and last name field. The values will be stored in your provided user fields.') . '</p>';
$output .= '<h4>' . t('Settings') . '</h4>';
$output .= '<dl>';
$output .= '<dt><strong>' . t('Using the core Profile module') . '</strong></dt>';
$output .= '<dd>' . t('(If you already have these fields, take note of the names and skip this step)') . '</dd>';
$output .= '<dd>' . t('Navigate to <a href="../user/profile">admin/user/profile</a> and create a text field that will hold the user\'s first name.') . ' ';
$output .= t('While editing the field, ensure that the Required field option is checked, also to Display on the registration form.') . ' ';
$output .= t('Repeat this step for the last name field. The middle name field is optional, and does not need to be required. Be sure to take note of what you have named the new fields.') . '</dd>';
$output .= '<dd><a href="../user/profile">' . t('Manage user fields') . ' &rarr;</a></dd>';
if (module_exists('content_profile_registration')) {
$output .= '<dt><strong>' . t('Using the Content profile module') . '</strong></dt>';
$output .= '<dd>' . t('If you have Content profile installed, you will have additional fieldsets on the configuration page.') . ' ';
$output .= t('Create your field names so that the first and last names are required. The middle name field is always optional.') . ' ';
$output .= t('Ensure that your Content profile type is used during registration.') . ' ';
$output .= t('To use the fields in Realname registration, check the box saying use this module for storage and supply the machine name of the corresponding Content profile type.') . '</dd>';
$output .= '<dd><a href="../content/types">' . t('Manage Content types') . ' &rarr;</a></dd>';
}
$output .= '</dl>';
$output .= '<dl>';
$output .= '<dt><strong>' . t('Configure the Realname registration module') . '</strong></dt>';
$output .= '<dd>' . t('Now that you have first name, middle name, and last name fields associated with your users, you can map these fields in Realname registration.') . ' ';
$output .= t('Type the field names that you have created in the appropriate textfields, and select your other options and click Submit.') . '</dd>';
$output .= '<dd><a href="../user/realname_registration">' . t('Configure Realname registration') . ' &rarr;</a></dd>';
$output .= '</dl>';
$output .= '<p><strong>' . t('Project resources') . '</strong></p>';
$output .= '<ul>';
$output .= '<li><a href="http://drupal.org/project/realname_registration">' . t('Project home') . '</a></li>';
$output .= '<li><a href="http://docs.yunices.com/project/realname-registration/installation-configuration">' . t('Documentation') . '</a></li>';
$output .= '<li><a href="http://drupal.org/project/issues/realname_registration?status=All&categories=All">' . t('Issue tracker') . '</a></li>';
$output .= '</ul>';
return $output;
}
}
/**
* Implementation of hook_form_alter().
*/
......
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