You are here

function apachesolr_test_page_alter in Apache Solr Search 8

Same name and namespace in other branches
  1. 7 tests/apachesolr_test/apachesolr_test.module \apachesolr_test_page_alter()

Implements hook_page_alter().

File

tests/apachesolr_test/apachesolr_test.module, line 7

Code

function apachesolr_test_page_alter(&$page) {
  $included_files = get_included_files();
  $filename = dirname(dirname(dirname(realpath(__FILE__)))) . '/apachesolr.index.inc';
  if (in_array($filename, $included_files)) {
    $page['page_bottom']['solr'] = array(
      '#type' => 'markup',
      '#markup' => 'apachesolr.index.inc was included',
    );
  }
}