DAOs with singular/plural options for entity titles
[civicrm-core.git] / CRM / Core / DAO / CustomGroup.php
index 12dd47769ebcc12105696d1b50de33d0fe7be493..8be9d28b24265a1a6d236f771c9df16660c9fe7d 100644 (file)
@@ -6,7 +6,7 @@
  *
  * Generated from xml/schema/CRM/Core/CustomGroup.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:494d883be861157d8067e6a6c50c23f6)
+ * (GenCodeChecksum:3436e2a4cf99bd9b7c859170db37bce3)
  */
 
 /**
@@ -194,9 +194,12 @@ class CRM_Core_DAO_CustomGroup extends CRM_Core_DAO {
 
   /**
    * Returns localized title of this entity.
+   *
+   * @param bool $plural
+   *   Whether to return the plural version of the title.
    */
-  public static function getEntityTitle() {
-    return ts('Custom Groups');
+  public static function getEntityTitle($plural = FALSE) {
+    return $plural ? ts('Custom Groups') : ts('Custom Group');
   }
 
   /**