You are here

function spaces_init in Spaces 7

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

Implements hook_init().

File

./spaces.module, line 791

Code

function spaces_init() {
  spaces_ahah_check();
  if (module_exists('spaces_customtext')) {
    global $language;
    $language->language = $language->language === 'spaces_customtext' ? spaces_customtext_cache() : $language->language;
  }
  if (!spaces_access_space()) {
    menu_set_active_item('spaces-access-denied');
  }
  spaces_router('init');
}