function fb_get_groups_data in Drupal for Facebook 6.3
Same name and namespace in other branches
- 5.2 fb.module \fb_get_groups_data()
- 5 fb.module \fb_get_groups_data()
- 6.2 fb.module \fb_get_groups_data()
- 7.3 fb.module \fb_get_groups_data()
2 calls to fb_get_groups_data()
File
- ./
fb.module, line 1193 - This is the core required module of Drupal for Facebook.
Code
function fb_get_groups_data($fbu, $fb_app = NULL) {
static $cache = array();
$fb = _fb_api_init($fb_app);
if (!$fb || !$fbu) {
return;
}
if (!isset($cache[$fbu])) {
$cache[$fbu] = fb_call_method($fb, 'groups.get', array(
'uid' => $fbu,
));
}
return $cache[$fbu];
}