function spaces_init in Spaces 7
Same name and namespace in other branches
- 5.2 spaces.module \spaces_init()
- 6.3 spaces.module \spaces_init()
- 6 spaces.module \spaces_init()
- 6.2 spaces.module \spaces_init()
- 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');
}