You are here

protected function spaces_controller_context::load_from_override in Spaces 7.3

Same name and namespace in other branches
  1. 6.3 plugins/spaces_controller_context.inc \spaces_controller_context::load_from_override()
  2. 7 plugins/spaces_controller_context.inc \spaces_controller_context::load_from_override()

Load the context described by an override identifier like 'foo:reaction:block'.

1 call to spaces_controller_context::load_from_override()
spaces_controller_context::load_original_values in plugins/spaces_controller_context.inc
Override of load_original_values().

File

plugins/spaces_controller_context.inc, line 11

Class

spaces_controller_context
Context controller.

Code

protected function load_from_override($override_id) {
  if ($split = explode(':', $override_id)) {
    $context_name = array_shift($split);
    $context = context_load($context_name);
    return $context;
  }
  return FALSE;
}