diff sites/all/modules/custom/solrconnect/tests/apachesolr_test/apachesolr_test.module @ 0:015d06b10d37 default tip

initial
author dwinter
date Wed, 31 Jul 2013 13:49:13 +0200
parents
children
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/modules/custom/solrconnect/tests/apachesolr_test/apachesolr_test.module	Wed Jul 31 13:49:13 2013 +0200
@@ -0,0 +1,16 @@
+<?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',
+    );
+  }
+}
\ No newline at end of file