Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
drupal.org
realname
Commits
e0baa7be
Commit
e0baa7be
authored
Oct 06, 2015
by
NancyDru
Browse files
Add help information.
parent
7faf42f8
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
23 additions
and
2 deletions
+23
-2
realname.admin.inc
realname.admin.inc
+7
-2
realname.module
realname.module
+16
-0
No files found.
realname.admin.inc
View file @
e0baa7be
...
...
@@ -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
);
...
...
realname.module
View file @
e0baa7be
...
...
@@ -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().
*/
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment