function fb_get_groups_data in Drupal for Facebook 5.2
Same name and namespace in other branches
- 5 fb.module \fb_get_groups_data()
- 6.3 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 462
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->api_client
->groups_get($fbu, NULL);
}
return $cache[$fbu];
}