You are here

function _spaces_block_nav in Spaces 5

Same name and namespace in other branches
  1. 5.2 spaces.module \_spaces_block_nav()
  2. 6 spaces.module \_spaces_block_nav()

Default navigation menu - you may want use customized version in tic.

1 call to _spaces_block_nav()
spaces_block in ./spaces.module
Implementation of hook_block()

File

./spaces_block.inc, line 14

Code

function _spaces_block_nav($custom = array()) {
  if ($gid = spaces_gid()) {
    $links = array_merge(spaces_features_menu('private'), spaces_features_menu('public'));
    if (user_access('administer group features')) {
      $links[] = array(
        'title' => t('Settings'),
        'href' => 'node/' . $gid . '/features',
        'attributes' => array(
          'class' => 'admin',
        ),
      );
    }
    $block['content'] = theme('links', $links);
  }
  return $block;
}