function hook_fboauth_user_properties_alter in Facebook OAuth (FBOAuth) 6
Same name and namespace in other branches
- 7.2 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.
Note that this hook is not particularly useful in Drupal 6 because the Profile module field support is hard-coded. This hook only provides functional value in Drupal 7's Field module field-mapping.
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 134 - 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';
}