CRM-16856 put Set title function on extendable class
authorEileen McNaughton <eileen@fuzion.co.nz>
Thu, 16 Jul 2015 04:30:58 +0000 (16:30 +1200)
committerEileen McNaughton <eileen@fuzion.co.nz>
Thu, 16 Jul 2015 04:30:58 +0000 (16:30 +1200)
CRM/Contact/Form/Search/Custom/Base.php

index 9ed19bd1c077df328f38f8339d86fc8270ca22bb..3ac54136fe2f7bde7a83dfaa30d5a61c80e71b99 100644 (file)
@@ -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'));
+    }
+  }
+
 }