﻿--- announcements/announcements.module	2008-10-06 16:10:10.000000000 +0200
+++ htdocs/testing/pre/modules/announcements/announcements.module	2009-01-31 21:35:13.000000000 +0100
@@ -344,6 +343,9 @@ function announcements_validate($node) {
     if ($publish_date >= $expiration_date) {
       form_set_error('publish_date', t('The publish date of an announcement must be before its expiration date.'));
     }
+    if(strlen($node->abstract)>255) {
+     form_set_error('abstract', t('The abstract is too long. It has to be shortend to this length: <p>"%text"</p>',array('%text' => strip_tags(substr($node->abstract,0,254)))));
+    }
   }
 } 

