You are here

apachesolr_test.module in Apache Solr Search 7

File

tests/apachesolr_test/apachesolr_test.module
View source
<?php

/**
 * Implements hook_page_alter().
 *
 */
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',
    );
  }
}

Functions

Namesort descending Description
apachesolr_test_page_alter Implements hook_page_alter().