You are here

function spaces_admin_links in Spaces 6.2

Generates an array of admin links for the current space suitable for use in theme_links().

1 call to spaces_admin_links()
spaces_preprocess_page in ./spaces.module
theme_page() preprocessor.

File

./spaces.module, line 1402

Code

function spaces_admin_links($space = NULL) {
  $space = !isset($space) ? spaces_get_space() : $space;
  if ($space && $space
    ->admin_access()) {
    $links = $space
      ->admin_links();
    drupal_alter('spaces_admin_links', $links, $space);
    return $links;
  }
  return array();
}