DAOs with singular/plural options for entity titles
[civicrm-core.git] / CRM / Contact / DAO / Group.php
index cdae401986356649bb6561599060cea33203d5e1..81f335ad602227ce9750b44d827008e2ad1d9db1 100644 (file)
@@ -6,7 +6,7 @@
  *
  * Generated from xml/schema/CRM/Contact/Group.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:6a2a222c5fa5b461727bb95379723b08)
+ * (GenCodeChecksum:9d3fc8fbc20e3b8068d5989828341c66)
  */
 
 /**
@@ -185,9 +185,12 @@ class CRM_Contact_DAO_Group 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('Groups');
+  public static function getEntityTitle($plural = FALSE) {
+    return $plural ? ts('Groups') : ts('Group');
   }
 
   /**