From 5a53a0d4d06212d926bd6b3f1449b29ee2c47768 Mon Sep 17 00:00:00 2001 From: Tim Steiner <tsteiner2@unl.edu> Date: Tue, 3 May 2011 20:11:53 +0000 Subject: [PATCH] [gh-122] Merging from testing into staging git-svn-id: file:///tmp/wdn_thm_drupal/branches/drupal-7.x/staging@611 20a16fea-79d4-4915-8869-1ea9d5ebf173 --- sites/all/modules/unl/unl.module | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/sites/all/modules/unl/unl.module b/sites/all/modules/unl/unl.module index d951ccb0..da3e72e7 100644 --- a/sites/all/modules/unl/unl.module +++ b/sites/all/modules/unl/unl.module @@ -119,6 +119,12 @@ function unl_menu() { 'position' => 'left', 'weight' => -6, ); + + $items['_status'] = array( + 'title' => 'Still Alive', + 'page callback' => 'unl_still_alive', + 'access callback' => TRUE, + ); if (conf_path() == 'sites/default') { $items['admin/sites/unl'] = array( @@ -695,3 +701,10 @@ function unl_shared_variable_get($name, $default = NULL) { return unserialize($data[0]->value); } + +// A simple "I'm still alive" page to check to see that drupal is working. +function unl_still_alive() +{ + header('Content-type: text/plain'); + echo '200 Still Alive'; +} -- GitLab