From d29f7810808bc364afc665471f7d1a5d7b6bb01c Mon Sep 17 00:00:00 2001 From: Thomas Bruederli Date: Sat, 19 Oct 2013 16:01:13 +0200 Subject: Let plugins state a validation error message --- program/lib/Roundcube/rcube_addressbook.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/program/lib/Roundcube/rcube_addressbook.php b/program/lib/Roundcube/rcube_addressbook.php index b245ea69d..f57a30eb9 100644 --- a/program/lib/Roundcube/rcube_addressbook.php +++ b/program/lib/Roundcube/rcube_addressbook.php @@ -230,6 +230,10 @@ abstract class rcube_addressbook 'valid' => $valid, )); + if ($valid && !$plugin['valid']) { + $this->set_error(self::ERROR_VALIDATE, $plugin['error']); + } + if (is_array($plugin['record'])) { $save_data = $plugin['record']; } -- cgit v1.2.3