function spaces_dashboard_page in Spaces 7
Same name and namespace in other branches
- 6.3 spaces_dashboard/spaces_dashboard.module \spaces_dashboard_page()
- 7.3 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 - Implements hook_menu().
File
- spaces_dashboard/
spaces_dashboard.module, line 243
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 '';
}