function fb_get_groups in Drupal for Facebook 5.2
Same name and namespace in other branches
- 5 fb.module \fb_get_groups()
- 6.3 fb.module \fb_get_groups()
- 6.2 fb.module \fb_get_groups()
- 7.3 fb.module \fb_get_groups()
1 call to fb_get_groups()
- fb_node_grantsXXX in ./
fb.module - Implementation of hook_node_grants.
File
- ./
fb.module, line 451
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;
}