function filedepot_og_get_user_groups in filedepot 7
3 calls to filedepot_og_get_user_groups()
File
- ./
lib-common.php, line 322 - lib-common.php Common library of functions for the applications
Code
function filedepot_og_get_user_groups() {
global $user;
$retval = array();
$groups = og_get_entity_groups('user', $user);
if (is_array($groups) and count($groups) > 0) {
if (function_exists('og_get_group')) {
$retval = $groups;
}
else {
$retval = $groups['node'];
}
}
return $retval;
}