You are here

function fb_get_groups in Drupal for Facebook 7.3

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. 6.2 fb.module \fb_get_groups()

File

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

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