function spaces_dashboard_team in Spaces 5
Same name and namespace in other branches
- 5.2 spaces_dashboard/spaces_dashboard.module \spaces_dashboard_team()
1 string reference to 'spaces_dashboard_team'
- spaces_dashboard_menu in spaces_dashboard/
spaces_dashboard.module
File
- spaces_dashboard/
spaces_dashboard.module, line 183
Code
function spaces_dashboard_team($gid = null) {
context_set('spaces', 'feature', 'group_dashboard');
// Add contextual button for adding users
if (user_access('create users')) {
$links = array();
$links[] = array(
'title' => t('User account'),
'href' => 'user/add',
);
context_set('spaces', 'links', $links);
}
drupal_add_css(drupal_get_path('module', 'spaces_dashboard') . '/spaces_dashboard.css');
drupal_add_js(drupal_get_path('module', 'spaces_dashboard') . '/spaces_dashboard.js');
$output .= drupal_get_form('spaces_dashboard_users');
return $output;
}