function _fb_user_get_config in Drupal for Facebook 7.3
Same name and namespace in other branches
- 6.3 fb_user.module \_fb_user_get_config()
- 6.2 fb_user.module \_fb_user_get_config()
Returns configuration for this module, on a per-app basis.
7 calls to _fb_user_get_config()
- fb_user_admin_form_alter in ./
fb_user.admin.inc - Not truly hook_form_alter(), this is called from fb_user_form_alter().
- fb_user_fb in ./
fb_user.module - Implements hook_fb.
- fb_user_form_user_profile_form_alter in ./
fb_user.module - Implements hook_form_user_profile_form_alter.
- fb_user_user_insert in ./
fb_user.module - Implements hook_user_insert.
- fb_user_user_login in ./
fb_user.module - Implements hook_user_login.
File
- ./
fb_user.module, line 125 - This module manages relations between local Drupal user accounts and their accounts on facebook.com.
Code
function _fb_user_get_config($fb_app) {
$fb_app_data = fb_get_app_data($fb_app);
$fb_user_data = isset($fb_app_data['fb_user']) ? $fb_app_data['fb_user'] : array();
// Merge in defaults
$fb_user_data += array(
'create_account' => FB_USER_OPTION_CREATE_NEVER,
'map_account' => array(
FB_USER_OPTION_MAP_ALWAYS => FB_USER_OPTION_MAP_ALWAYS,
FB_USER_OPTION_MAP_EMAIL => FB_USER_OPTION_MAP_EMAIL,
),
'new_user_rid' => NULL,
'connected_user_rid' => NULL,
);
return $fb_user_data;
}