function og_block_subscribers in Organic groups 5
Same name and namespace in other branches
- 5.8 og.module \og_block_subscribers()
- 5.2 og.module \og_block_subscribers()
- 5.3 og.module \og_block_subscribers()
- 5.7 og.module \og_block_subscribers()
1 call to og_block_subscribers()
- og_block in ./
og.module - Implementation of hook_block().
File
- ./
og.module, line 2523
Code
function og_block_subscribers() {
global $user;
if ($group_node = og_get_group_context()) {
$gid = $group_node->nid;
// only members can see membership list
if (in_array($gid, array_keys($user->og_groups))) {
$max = variable_get('og_block_cnt_2', 10);
// Should we show admins, standard users, or both. From block configuration.
$is_admin = variable_get("og_block_subscribers_is_admin", drupal_map_assoc(array(
'members',
'admins',
)));
$block['subject'] = t('Recently joined');
$block['content'] = og_block_subscribers_list($gid, $max, $is_admin);
return $block;
}
}
}