function janrain_capture_fields_array in Janrain Registration 6
Function to create the array of user data to save.
2 calls to janrain_capture_fields_array()
- janrain_capture_oauth in ./
janrain_capture.pages.inc - Callback for the janrain_capture/oauth menu item. This serves as the redirect_uri Capture redirects the user to and performs the authentication.
- 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.pages.inc, line 266 - User page callbacks for the janrain_capture module.
Code
function janrain_capture_fields_array($user_data, $profile) {
$fields = module_invoke_all('janrain_capture_fields_array', $profile);
if (is_array($fields)) {
foreach ($fields as &$f) {
if (is_array($f)) {
$f = $f[0];
}
}
}
if (!empty($fields) && is_array($fields)) {
$user_data = array_merge($user_data, $fields);
}
return $user_data;
}