function _fb_user_get_authmap in Drupal for Facebook 6.2
Same name and namespace in other branches
- 5.2 fb_user.module \_fb_user_get_authmap()
- 5 fb_user.module \_fb_user_get_authmap()
Helper function to create an authname for the authmap table.
When a single Drupal instance hosts multiple Facebook apps, the apps can share the same mapping, or each have their own.
Return value
an array with both a 'module' and an authname. A data structure necessary for Drupal's authmap api.
5 calls to _fb_user_get_authmap()
- fb_register_fb in contrib/
fb_register.module - Implementation of hook_fb(). Here we customize the behavior of Drupal for Facebook.
- fb_user_create_local_user in ./
fb_user.module - Creates a local Drupal account for the specified facebook user id.
- fb_user_user in ./
fb_user.module - Implementation of hook_user.
- fb_views_handler_filter_profile_tab::query in fb_views/
fb_views_handler_filter_profile_tab.inc - _fb_user_set_authmap in ./
fb_user.module - Helper function to keep the authmap table in sync.
File
- ./
fb_user.module, line 636 - This module manages relations between local Drupal user accounts and their accounts on facebook.com.
Code
function _fb_user_get_authmap($fb_app, $fbu) {
$fb_user_data = _fb_user_get_config($fb_app);
$authname = $fbu;
$module = "authname_fb_user";
return array(
$module,
$authname,
);
}