You are here

function spaces_block_view in Spaces 7.3

Same name and namespace in other branches
  1. 7 spaces.module \spaces_block_view()

Implements hook_block_view().

File

./spaces.module, line 898

Code

function spaces_block_view($delta = 0) {
  if ($delta == 'menu_editor') {
    if (spaces_access_admin()) {

      // Check for User space type which doesn't support this feature.
      $space = spaces_get_space();
      if ($space && $space->type == 'user') {
        return array();
      }
      return array(
        'subject' => t('Reorder menu'),
        'content' => drupal_get_form('spaces_get_menu_editor'),
      );
    }
  }
}