You are here

function context_reaction::fetch_from_context in Context 7.3

Same name and namespace in other branches
  1. 6.3 plugins/context_reaction.inc \context_reaction::fetch_from_context()
  2. 6 plugins/context_reaction.inc \context_reaction::fetch_from_context()

Retrieve options from the context provided.

13 calls to context_reaction::fetch_from_context()
context_layouts_reaction_block::editor_form in context_layouts/plugins/context_layouts_reaction_block.inc
Override of editor form.
context_layouts_reaction_block::get_active_layout in context_layouts/plugins/context_layouts_reaction_block.inc
Retrieve the first layout specified found by any active contexts.
context_layouts_reaction_block::options_form in context_layouts/plugins/context_layouts_reaction_block.inc
Override of options form.
context_reaction::get_contexts in plugins/context_reaction.inc
Retrieve active contexts that have values for this reaction.
context_reaction_block::block_list in plugins/context_reaction_block.inc
An alternative version of block_list() that provides any context enabled blocks.

... See full list

1 method overrides context_reaction::fetch_from_context()
context_reaction_menu::fetch_from_context in plugins/context_reaction_menu.inc
Overrides parent function to include legacy handling for old format of just storing a single path.

File

plugins/context_reaction.inc, line 83

Class

context_reaction
Base class for a context reaction.

Code

function fetch_from_context($context) {
  return isset($context->reactions[$this->plugin]) ? $context->reactions[$this->plugin] : array();
}