You are here

function replicate_ui_replicate_user in Replicate UI 7

The action function for the 'replicate_ui_replicate_user'.

File

./replicate_ui.rules.inc, line 82
Replicate Rules code: actions, conditions and events.

Code

function replicate_ui_replicate_user($account) {
  $new = replicate_entity('user', $account);
  if ($new) {
    drupal_set_message(t('User @username has been replicated!', array(
      '@username' => $account->name,
    )));
  }
}