You are here

function fb_get_groups_data in Drupal for Facebook 7.3

Same name and namespace in other branches
  1. 5.2 fb.module \fb_get_groups_data()
  2. 5 fb.module \fb_get_groups_data()
  3. 6.3 fb.module \fb_get_groups_data()
  4. 6.2 fb.module \fb_get_groups_data()
2 calls to fb_get_groups_data()
fb_form_group_options in ./fb_form.module
fb_get_groups in ./fb.module

File

./fb.module, line 1309
This is the core required module of Drupal for Facebook.

Code

function fb_get_groups_data($fbu, $fb_app = NULL) {
  $cache =& drupal_static(__FUNCTION__);
  $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];
}