You are here

function spaces_core_context_default_contexts in Spaces 6

Implementation of hook_context_default_contexts().

File

spaces_core/spaces_core.module, line 150

Code

function spaces_core_context_default_contexts() {
  $items = array();
  $items[] = array(
    'namespace' => 'spaces',
    'attribute' => 'feature',
    'value' => 'blog',
    'menu' => 'blog',
    'node' => array(
      'blog',
    ),
    'views' => array(
      'spaces_blog',
    ),
    'block' => array(
      array(
        'module' => 'views',
        'delta' => 'spaces_blog-block_1',
        'region' => 'right',
        'weight' => '11',
      ),
      array(
        'module' => 'views',
        'delta' => 'spaces_blog_comments-block_1',
        'region' => 'right',
        'weight' => '10',
      ),
    ),
    'spaces' => array(
      'label' => t('Blog'),
      'description' => t('A blog for team communications.'),
      'menu' => array(
        array(
          'title' => t('Blog'),
          'href' => 'blog',
        ),
      ),
      'types' => array(),
    ),
  );
  if (module_exists('book')) {
    $items[] = array(
      'namespace' => 'spaces',
      'attribute' => 'feature',
      'value' => 'book',
      'menu' => 'documents',
      'node' => array(
        'book',
      ),
      'block' => array(
        array(
          'module' => 'spaces_core',
          'delta' => 'book',
          'region' => 'right',
          'weight' => -11,
        ),
      ),
      'spaces' => array(
        'label' => t('Documents'),
        'description' => t('A document section for maintaining a knowledge base.'),
        'menu' => array(
          array(
            'title' => t('Documents'),
            'href' => 'documents',
          ),
        ),
        'types' => array(
          'og',
        ),
      ),
    );
  }
  if (module_exists('taxonomy')) {
    $items[] = array(
      'namespace' => 'spaces',
      'attribute' => 'feature',
      'value' => 'taxonomy',
      'views' => array(
        'spaces_taxonomy',
      ),
      'block' => array(
        array(
          'module' => 'spaces_core',
          'delta' => 'tags',
          'region' => 'right',
          'weight' => -11,
        ),
      ),
    );
  }
  return $items;
}