You are here

function _fb_user_get_config in Drupal for Facebook 6.3

Same name and namespace in other branches
  1. 6.2 fb_user.module \_fb_user_get_config()
  2. 7.3 fb_user.module \_fb_user_get_config()

Returns configuration for this module, on a per-app basis.

5 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
Implementation of hook_fb.
fb_user_user in ./fb_user.module
Implementation of hook_user().
_fb_user_create_local_account in ./fb_user.module
Helper function to create local account for the currently authorized user.
_fb_user_process_authorized_user in ./fb_user.module
Create local account or account map for a facebook user who has authorized the application.

File

./fb_user.module, line 84
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;
}