Commit 6fc61d5c authored by Dave Reid's avatar Dave Reid
Browse files

Issue #1414140: Added rules action integration for updating a real name.

parent bdbbc941
......@@ -144,6 +144,26 @@ function realname_action_info() {
return $info;
}
/**
* Implements hook_rules_action_info().
*/
function realname_rules_action_info() {
$items['user_realname_update'] = array(
'label' => t('Update real name'),
'base' => 'realname_action_realname_update',
'parameter' => array(
'account' => array(
'type' => 'user',
'label' => t('User'),
'save' => FALSE,
),
),
'group' => t('User'),
'access callback' => 'rules_user_integration_access',
);
return $items;
}
/**
* Action callback to update a user's realname.
*/
......
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