You are here

function context_reaction::fetch_from_context in Context 6.3

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

Retrieve options from the context provided.

9 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

File

plugins/context_reaction.inc, line 82

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();
}