From 1db3998f6f5366111739052e1e4bd80a166c5fa7 Mon Sep 17 00:00:00 2001 From: Alexander O'Neill Date: Mon, 10 Jan 2011 12:57:32 -0400 Subject: [PATCH] ISLANDORA-89\Changed display message to a warning in drupal_set_message, with repeat set to FALSE. --- fedora_repository.module | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/fedora_repository.module b/fedora_repository.module index 033c698e..81056ef3 100644 --- a/fedora_repository.module +++ b/fedora_repository.module @@ -758,7 +758,8 @@ function fedora_repository_get_items($pid = NULL, $dsId = NULL, $collection = NU global $user; if (!fedora_available()) { - return t('The Fedora repository server is currently unavailable. Please contact the site administrator.'); + drupal_set_message('The Fedora repository server is currently unavailable. Please contact the site administrator.', 'warning', FALSE); + return ''; } if ($pid &!validPid($pid)) {