You are here

function spaces_block_view in Spaces 7

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

Implements hook_block_view().

File

./spaces.module, line 832

Code

function spaces_block_view($delta = 0) {
  if (module_exists('jquery_ui')) {
    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'),
        );
      }
    }
  }
}