You are here

spaces_block.inc in Spaces 5

File

spaces_block.inc
View source
<?php

/*
 *  Contextual tools
 */
function _spaces_block_tools() {
  $block['content'] = theme('spaces_button');
  return $block;
}

/**
 *  Default navigation menu - you may want use customized version in tic.
 */
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;
}

Functions

Namesort descending Description
_spaces_block_nav Default navigation menu - you may want use customized version in tic.
_spaces_block_tools