You are here

function hook_janrain_capture_user_profile_updated in Janrain Registration 7

Same name and namespace in other branches
  1. 7.4 janrain_capture.api.php \hook_janrain_capture_user_profile_updated()
  2. 7.2 janrain_capture.api.php \hook_janrain_capture_user_profile_updated()
  3. 7.3 janrain_capture.api.php \hook_janrain_capture_user_profile_updated()

Act on users when data is updated

This hook is executed immediately after the user profile is updated in Capture and synchronized with the local Drupal user. By default this the completion of this process will redirect the user to $origin. If you wish to prevent this behavior you can do so by returning false from an implementation of this hook.

Parameters

array $capture_profile: The profile data returned from the user's Capture record

array $account: The local Drupal user account being authenticated

Return value

boolean If FALSE Drupal will not redirect the user to $origin

1 invocation of hook_janrain_capture_user_profile_updated()
janrain_capture_profile_sync in ./janrain_capture.pages.inc
Callback for the janrain_capture/profile_sync menu item. Retrieves the most recent data from Capture and stores values locally.

File

./janrain_capture.api.php, line 53
Hooks provided by Janrain Capture

Code

function hook_janrain_capture_user_profile_updated($capture_profile, $account) {

  // Update status message and redirect user to home page.
  drupal_set_message(t('Profile Updated!'), 'status');
  drupal_goto();
  return FALSE;
}