You are here

function hook_fboauth_field_convert_info_alter in Facebook OAuth (FBOAuth) 7

Same name and namespace in other branches
  1. 7.2 fboauth.api.php \hook_fboauth_field_convert_info_alter()

Alter the list of Field API field types that are supported as targets.

Parameters

$convert_info: An associative array of field types and callbacks.

See also

fboauth_field_convert_info()

1 invocation of hook_fboauth_field_convert_info_alter()
fboauth_field_convert_info in includes/fboauth.field.inc
Provide a callback map for converting Facebook data to fields.

File

./fboauth.api.php, line 143
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_field_convert_info_alter(&$convert_info) {

  // Provide a callback for mapping Facebook properties to Geofields.
  $convert_info['geofield'] = array(
    'label' => t('Geofield'),
    'callback' => 'example_convert_geofield',
  );
}