From: Eileen McNaughton Date: Thu, 16 Jul 2015 04:30:58 +0000 (+1200) Subject: CRM-16856 put Set title function on extendable class X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=4bc31366e2e879ec0d80db2d00bfa0a7841c743d;p=civicrm-core.git CRM-16856 put Set title function on extendable class --- 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')); + } + } + }