function fboauth_field_convert_info in Facebook OAuth (FBOAuth) 7
Same name and namespace in other branches
- 7.2 includes/fboauth.field.inc \fboauth_field_convert_info()
Provide a callback map for converting Facebook data to fields.
1 call to fboauth_field_convert_info()
- fboauth_field_create_user in includes/
fboauth.field.inc - Add field info to a Drupal user array (before account creation).
File
- includes/
fboauth.field.inc, line 88 - Facebook to Field module mapping.
Code
function fboauth_field_convert_info() {
$convert_info = array(
'text' => array(
'label' => t('Text'),
'callback' => 'fboauth_field_convert_text',
),
'link_field' => array(
'label' => t('Link Field'),
'callback' => 'fboauth_field_convert_link_field',
),
'location' => array(
'label' => t('Location'),
'callback' => 'fboauth_field_convert_location',
),
'text_long' => array(
'label' => t('Long text'),
'callback' => 'fboauth_field_convert_text',
),
'list_text' => array(
'label' => t("List ('text')"),
'callback' => 'fboauth_field_convert_list',
),
'datetime' => array(
'label' => t('Date'),
'callback' => 'fboauth_field_convert_date',
),
'date' => array(
'label' => t('Date'),
'callback' => 'fboauth_field_convert_date',
),
'datestamp' => array(
'label' => t('Date'),
'callback' => 'fboauth_field_convert_date',
),
'image' => array(
'label' => t('Image'),
'callback' => 'fboauth_field_convert_image',
),
);
drupal_alter('fboauth_field_convert_info', $convert_info);
return $convert_info;
}