You are here

function _semantic_panels_context_to_token_replace_data in Semantic Panels 7.2

Same name and namespace in other branches
  1. 7 semantic_panels.module \_semantic_panels_context_to_token_replace_data()
1 call to _semantic_panels_context_to_token_replace_data()
_semantic_panels_get_html in ./semantic_panels.module
Render an element as HTML.

File

./semantic_panels.module, line 179
Semantic Panels.

Code

function _semantic_panels_context_to_token_replace_data($contexts) {
  $return = array();
  foreach ($contexts as $context) {
    $return[$context->keyword] = $context->data;
  }
  return $return;
}