You are here

function fb_get_groups in Drupal for Facebook 6.2

Same name and namespace in other branches
  1. 5.2 fb.module \fb_get_groups()
  2. 5 fb.module \fb_get_groups()
  3. 6.3 fb.module \fb_get_groups()
  4. 7.3 fb.module \fb_get_groups()

File

./fb.module, line 557

Code

function fb_get_groups($fbu, $fb_app = NULL) {
  $items = array();
  $groups = fb_get_groups_data($fbu);
  if ($groups && count($groups)) {
    foreach ($groups as $data) {
      $items[] = $data['gid'];
    }
  }
  return $items;
}