Commit bdbbc941 authored by Dave Reid's avatar Dave Reid
Browse files

Added an action to update a user's real name.

parent 6b69842f
......@@ -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().
*/
......
Supports Markdown
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