Commit aca03ec1 authored by Matt Corks's avatar Matt Corks

Updated README.txt, better string translation for hook_enable, PHP syntax corrections.

parent e4cd9814
......@@ -45,11 +45,13 @@ Higher priority:
- show available field and profile type options as a dropdown box instead of
making users type the machine name!
- check for username length during form validation
- provide option to update existing usernames when names are updated
- improve how strings with placeholders are translated
Lower priority:
- provide option to update existing usernames when names are updated, and an
action to bulk update existing usernames when realname_registration is
enabled or when its configuration has changed
- provide an action to bulk update existing usernames when
realname_registration is enabled or its configuration has changed
- handle multiple middle names
- integrate with the name module
- handle the case where name fields are translated (do people really do this?)
......@@ -180,7 +180,7 @@ function realname_registration_settings_form() {
t('First name and last name without spaces (e.g., JohnSmith)'),
t('First name, middle name, and last name without spaces (e.g., JohnJacobSmith)'),
t('First name, middle initial, and last name without spaces (e.g., JohnJSmith)'),
t('Last name and first name without spaces (e.g., SmithJohn)')
t('Last name and first name without spaces (e.g., SmithJohn)'),
t('First name and last initial without spaces (e.g., JohnS)')
),
'#required' => TRUE,
......
......@@ -4,6 +4,15 @@
* Install, update and uninstall functions for the realname_registration module.
*/
/*
* Implementation of hook_enable().
*/
function realname_registration_enable() {
$success = t('Realname registration has been enabled. Please visit the <a href="@url">configuration page</a>.',
array('@url' => url('admin/config/people/realname_registration')));
drupal_set_message($success, 'status');
}
/**
* Implementation of hook_install().
*/
......@@ -28,4 +37,4 @@ function realname_registration_uninstall() {
variable_del('realname_registration_format');
variable_del('realname_registration_tolower');
variable_del('realname_registration_use_validation');
}
\ No newline at end of file
}
......@@ -7,15 +7,13 @@
* required first name and last name fields on the registration form.
*/
/*
* Implementation of hook_enable().
TODO:
- provide internal functions which determine first, middle, and last names
to use
- provide internal function to generate username so that validation
functions can check username length
*/
function realname_registration_enable() {
$success = t('Realname registration has been enabled.') . ' ';
$success .= t('Please visit the') . ' <a href="config/people/realname_registration">' . t('configuration page') . '</a>.';
drupal_set_message($success, 'status');
}
/**
* Implement hook_help().
......
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