function _drupalchat_get_groups in DrupalChat 7
Same name and namespace in other branches
- 7.2 drupalchat.module \_drupalchat_get_groups()
Returns the groups to be used for filtering users
1 call to _drupalchat_get_groups()
File
- ./
drupalchat.module, line 1528 - Module code for DrupalChat.
Code
function _drupalchat_get_groups($uid) {
$groups = array();
if (function_exists('og_get_groups_by_user')) {
$og_groups = og_get_groups_by_user();
if (isset($og_groups['node'])) {
$groups = $og_groups['node'];
}
}
//hook to filter groups
drupal_alter('drupalchat_get_groups', $groups, $uid);
return $groups;
}