You are here

function spaces_dashboard_page in Spaces 6.3

Same name and namespace in other branches
  1. 7.3 spaces_dashboard/spaces_dashboard.module \spaces_dashboard_page()
  2. 7 spaces_dashboard/spaces_dashboard.module \spaces_dashboard_page()

Empty page callback for dashboard feature.

1 string reference to 'spaces_dashboard_page'
spaces_dashboard_menu in spaces_dashboard/spaces_dashboard.module
Implementation of hook_menu()

File

spaces_dashboard/spaces_dashboard.module, line 247

Code

function spaces_dashboard_page($dashboard = NULL) {
  if (isset($dashboard)) {
    $context = context_load("spaces_dashboard-{$dashboard}");
    if (!$context) {
      $context = ctools_export_new_object('context');
      $context->name = "spaces_dashboard-{$dashboard}";
      $context->description = 'Dashboard';
      $context->tag = 'Dashboard';
      context_save($context);
    }
    context_set('spaces', 'dashboard', "spaces_dashboard-{$dashboard}");
    context_set('context', "spaces_dashboard-{$dashboard}", $context);
  }
  return '';
}