You are here

function profile2_regpath_user_insert in Profile2 Registration Path 7.2

Same name and namespace in other branches
  1. 7 profile2_regpath.module \profile2_regpath_user_insert()

Implements hook_user_insert().

File

./profile2_regpath.module, line 196
Attach profile2 form to registration form according to path.

Code

function profile2_regpath_user_insert(&$edit, $account, $category) {

  // Show custom confirmation message.
  if (isset($_SESSION['profile2_regpath']['confirmation_message'])) {
    drupal_set_message(filter_xss($_SESSION['profile2_regpath']['confirmation_message']));
    unset($_SESSION['profile2_regpath']['confirmation_message']);
  }
}