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
bdbbc941
Commit
bdbbc941
authored
May 13, 2012
by
Dave Reid
Browse files
Added an action to update a user's real name.
parent
6b69842f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
0 deletions
+20
-0
realname.module
realname.module
+20
-0
No files found.
realname.module
View file @
bdbbc941
...
...
@@ -131,6 +131,26 @@ function realname_user_operations_realname_update(array $uids) {
}
}
/**
* Implements hook_action_info().
*/
function
realname_action_info
()
{
$info
[
'realname_action_realname_update'
]
=
array
(
'type'
=>
'user'
,
'label'
=>
t
(
'Update real name'
),
'configurable'
=>
FALSE
,
);
return
$info
;
}
/**
* Action callback to update a user's realname.
*/
function
realname_action_realname_update
(
$account
,
$context
=
array
())
{
realname_delete
(
$account
->
uid
);
}
/**
* Implements hook_views_api().
*/
...
...
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