function commons_groups_block_view in Drupal Commons 7.3
Implements hook_block_view().
File
- modules/
commons/ commons_groups/ commons_groups.module, line 249
Code
function commons_groups_block_view($delta = '') {
$block = array();
switch ($delta) {
case 'commons_groups_create_group':
if (node_access('create', 'group')) {
$block['subject'] = NULL;
$block['content'] = array(
'#type' => 'link',
'#title' => t('Create a group'),
'#href' => 'node/add/group',
);
}
break;
}
return $block;
}