You are here

function fb_get_groups_data in Drupal for Facebook 5

Same name and namespace in other branches
  1. 5.2 fb.module \fb_get_groups_data()
  2. 6.3 fb.module \fb_get_groups_data()
  3. 6.2 fb.module \fb_get_groups_data()
  4. 7.3 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 389

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];
}