You are here

function spaces_dashboard_menu in Spaces 5

Same name and namespace in other branches
  1. 5.2 spaces_dashboard/spaces_dashboard.module \spaces_dashboard_menu()
  2. 6.3 spaces_dashboard/spaces_dashboard.module \spaces_dashboard_menu()
  3. 7.3 spaces_dashboard/spaces_dashboard.module \spaces_dashboard_menu()
  4. 7 spaces_dashboard/spaces_dashboard.module \spaces_dashboard_menu()

File

spaces_dashboard/spaces_dashboard.module, line 6

Code

function spaces_dashboard_menu($may_cache) {
  if ($may_cache) {
    $items[] = array(
      'path' => 'group_dashboard',
      'title' => t('Group Dashboard'),
      'description' => t('Allows a user in multiple groups to get a birds-eye view of her groups.'),
      'callback' => 'spaces_dashboard_group_dashboard',
      'access' => user_access('access content'),
      'type' => MENU_NORMAL_ITEM,
    );
    $items[] = array(
      'path' => 'group_dashboard/dashboard',
      'title' => t('Dashboard'),
      'description' => t('Allows a user in multiple groups to get a birds-eye view of her groups.'),
      'callback' => 'spaces_dashboard_group_dashboard',
      'access' => user_access('access content'),
      'type' => MENU_NORMAL_ITEM,
    );
    if (module_exists('ucreate')) {
      $items[] = array(
        'path' => 'group_dashboard/team',
        'title' => t('Users'),
        'description' => t('A full listing of users on the spaces.'),
        'callback' => 'spaces_dashboard_team',
        'access' => user_access('create users'),
        'type' => MENU_NORMAL_ITEM,
      );
    }
  }
  return $items;
}