function hook_fboauth_user_properties_alter in Facebook OAuth (FBOAuth) 7.2
Same name and namespace in other branches
- 6 fboauth.api.php \hook_fboauth_user_properties_alter()
- 7 fboauth.api.php \hook_fboauth_user_properties_alter()
Alter the list of Facebook properties that can be mapped to fields.
Parameters
$properties: An associative array of Faceboook properties.
See also
1 invocation of hook_fboauth_user_properties_alter()
- fboauth_user_properties in includes/
fboauth.fboauth.inc - Return a list of Facebook user properties.
File
- ./
fboauth.api.php, line 130 - This file contains API documentation for the Facebook OAuth module. Note that all of this code is merely for example purposes, it is never executed when using the Facebook OAuth module.
Code
function hook_fboauth_user_properties_alter(&$properties) {
// Allow the location property to be mapped to Geofield typed fields.
$properties['location']['field_types'][] = 'geofield';
}