Commit e0baa7be authored by NancyDru's avatar NancyDru
Browse files

Add help information.

parent 7faf42f8
......@@ -16,7 +16,12 @@ function realname_settings_form($form, &$form_state) {
'#min_tokens' => 1,
'#required' => TRUE,
'#maxlength' => 256,
);
'#description' => t('This pattern will be used to construct Realnames for all users.
<br /><br />
Note that if it is changed, all current Realnames will be deleted and the
list in the database will be rebuilt as needed.
'),
);
// Add the token tree UI.
$form['token_help'] = array(
......@@ -24,7 +29,7 @@ function realname_settings_form($form, &$form_state) {
'#token_types' => array('user'),
'#global_types' => FALSE,
'#dialog' => TRUE,
);
);
$form['#submit'][] = 'realname_settings_form_submit';
return system_settings_form($form);
......
......@@ -13,6 +13,22 @@
* @defgroup realname Real name API
*/
/**
* Implements hook_help().
*/
function realname_help($path, $arg) {
switch ($path) {
// Main module help for the Realname module.
case 'admin/config/people/realname':
case 'admin/help#realname':
return '<p>'
. t('A Real Name is what the site developer decides that users\' names
should look like. It is constructed from various tokens that are available
within the site.')
. '</p>';
}
}
/**
* Implements hook_permission().
*/
......
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