You are here

function spaces_init in Spaces 6

Same name and namespace in other branches
  1. 5.2 spaces.module \spaces_init()
  2. 6.3 spaces.module \spaces_init()
  3. 6.2 spaces.module \spaces_init()
  4. 7.3 spaces.module \spaces_init()
  5. 7 spaces.module \spaces_init()

Implementation of hook_init().

File

./spaces.module, line 8

Code

function spaces_init() {
  spaces_router('menu');

  // Rebuild spaces menu on page callbacks where there is the
  // potential for the addition/removal/alteration of features.
  if ($_GET['q'] == 'admin/build/context') {
    spaces_menu_rebuild();
  }
  include_once drupal_get_path('module', 'spaces') . '/spaces_admin.inc';
}