From e3b3bd4c543a38b29ecca7f585bfb06b4840ca78 Mon Sep 17 00:00:00 2001 From: Alan Stanley Date: Tue, 10 Sep 2013 15:46:11 -0300 Subject: [PATCH] truncated long labels --- includes/object_properties.form.inc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/includes/object_properties.form.inc b/includes/object_properties.form.inc index 838c4078..5295f067 100644 --- a/includes/object_properties.form.inc +++ b/includes/object_properties.form.inc @@ -78,7 +78,9 @@ function islandora_object_properties_form(array $form, array &$form_state, Abstr 'delete' => array( '#type' => 'submit', '#access' => islandora_object_access(ISLANDORA_PURGE, $object), - '#value' => t("Permanently remove '@label' from repository", array('@label' => $object->label)), + '#value' => t("Permanently remove '@label' from repository", array( + '@label' => truncate_utf8($object->label, 32, TRUE, TRUE)) + ), '#submit' => array('islandora_object_properties_form_delete'), '#limit_validation_errors' => array(array('pid')), ),