function spaces_controller_variable::init_overrides in Spaces 7
Same name and namespace in other branches
- 6.3 plugins/spaces_controller_variable.inc \spaces_controller_variable::init_overrides()
- 7.3 plugins/spaces_controller_variable.inc \spaces_controller_variable::init_overrides()
Override of init_overrides().
Overrides spaces_controller::init_overrides
1 call to spaces_controller_variable::init_overrides()
- spaces_controller_customtext::init_overrides in spaces_customtext/
plugins/ spaces_controller_customtext.inc - Override of init_overrides().
1 method overrides spaces_controller_variable::init_overrides()
- spaces_controller_customtext::init_overrides in spaces_customtext/
plugins/ spaces_controller_customtext.inc - Override of init_overrides().
File
- plugins/
spaces_controller_variable.inc, line 10
Class
- spaces_controller_variable
- Variable controller.
Code
function init_overrides() {
// Load original variables. Only do this once, and it may not be reset.
$this
->load_original_values();
// Load the preset values.
$this
->reset_values('preset');
$this
->load_preset_values();
// Load space variables.
$this
->reset_values('space');
$this
->load_space_values();
// Alter global variable conf as we don't have any other way of
// influencing the result of variable_get().
global $conf;
$conf = $this
->get();
// If we have overridden 'site_frontpage', we need to do some extra
// work to reinit the drupal path.
// TODO: Is purl_language_strip still needed?
//if ($this->get('site_frontpage') !== $this->get('site_frontpage', 'original') && function_exists('purl_language_strip')) {
// $_GET['q'] = purl_language_strip($_REQUEST['q']);
// drupal_path_initialize();
//}
}