You are here

function spaces_dashboard_context_define in Spaces 5.2

Same name and namespace in other branches
  1. 5 spaces_dashboard/spaces_dashboard.module \spaces_dashboard_context_define()

Implementation of hook_context_define()

File

spaces_dashboard/spaces_dashboard.module, line 78

Code

function spaces_dashboard_context_define() {
  global $user;
  $items = array();
  $items[] = array(
    'namespace' => 'spaces',
    'attribute' => 'feature',
    'value' => 'group_dashboard',
    'node' => og_get_types('group'),
    'views' => array(
      'spaces_group_dashboard',
      'spaces_group_directory',
      'spaces_group_my',
    ),
    'block' => array(
      array(
        'module' => 'views',
        'delta' => 'spaces_group_my',
        'region' => 'right',
        'weight' => -11,
      ),
    ),
    'menu' => array(
      'group_dashboard',
    ),
  );
  return $items;
}