From 4bc31366e2e879ec0d80db2d00bfa0a7841c743d Mon Sep 17 00:00:00 2001 From: Eileen McNaughton Date: Thu, 16 Jul 2015 16:30:58 +1200 Subject: [PATCH] CRM-16856 put Set title function on extendable class --- CRM/Contact/Form/Search/Custom/Base.php | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/CRM/Contact/Form/Search/Custom/Base.php b/CRM/Contact/Form/Search/Custom/Base.php index 9ed19bd1c0..3ac54136fe 100644 --- a/CRM/Contact/Form/Search/Custom/Base.php +++ b/CRM/Contact/Form/Search/Custom/Base.php @@ -243,4 +243,18 @@ class CRM_Contact_Form_Search_Custom_Base { return NULL; } + /** + * Set the title. + * + * @param string $title + */ + function setTitle($title) { + if ($title) { + CRM_Utils_System::setTitle($title); + } + else { + CRM_Utils_System::setTitle(ts('Search')); + } + } + } -- 2.25.1