You are here

function _fb_user_get_config in Drupal for Facebook 6.2

Same name and namespace in other branches
  1. 6.3 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.

6 calls to _fb_user_get_config()
fb_user_fb in ./fb_user.module
Implementation of hook_fb.
fb_user_form_alter in ./fb_user.module
fb_user_user in ./fb_user.module
Implementation of hook_user.
_fb_user_get_authmap in ./fb_user.module
Helper function to create an authname for the authmap table.
_fb_user_set_authmap in ./fb_user.module
Helper function to keep the authmap table in sync.

... See full list

File

./fb_user.module, line 60
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 = $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' => FB_USER_OPTION_MAP_ALWAYS,
  );
  return $fb_user_data;
}