View source
<?php
function _spaces_block_tools() {
$block['content'] = theme('spaces_button');
return $block;
}
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;
}