You are here

function spaces_user_context_links_alter in Spaces 6

Same name and namespace in other branches
  1. 6.2 spaces_user/spaces_user.module \spaces_user_context_links_alter()

Implementation of hook_context_links_alter().

File

spaces_user/spaces_user.module, line 307

Code

function spaces_user_context_links_alter(&$links) {

  // Disallow users from submitting ANY content in other people's spaces : )
  $space = spaces_get_space();
  if ($space && $space->type == 'user') {
    global $user;
    if ($user->uid != $space->sid) {
      $links = array();
    }
  }
}