You are here

function apachesolr_context_page_condition::execute in Apache Solr Search 7

Override of execute().

Parameters

Array $search_page The loaded search page.: Loaded in apachesolr_search_custom_page().

File

plugins/context/apachesolr_context_page_condition.inc, line 29
Context integration for Apachesolr.

Class

apachesolr_context_page_condition
Expose Apachesolr pages as a context condition.

Code

function execute($search_page) {
  foreach ($this
    ->get_contexts($search_page['page_id']) as $context) {

    // Set contexts for this Apachesolr page.
    $this
      ->condition_met($context, $search_page['page_id']);
  }
}