DAOs with singular/plural options for entity titles
[civicrm-core.git] / CRM / Mailing / DAO / MailingGroup.php
index 220bfd13cb08a8554f8d50942feb52ad73f01c80..0d3497c6cdebac5986e7a1959078503d6d029744 100644 (file)
@@ -6,7 +6,7 @@
  *
  * Generated from xml/schema/CRM/Mailing/MailingGroup.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:a253e806fcb595ede70c812a10c0dbba)
+ * (GenCodeChecksum:4ab3dccb8706ec8f03072118ff2e9c12)
  */
 
 /**
@@ -87,9 +87,12 @@ class CRM_Mailing_DAO_MailingGroup 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('Mailing Groups');
+  public static function getEntityTitle($plural = FALSE) {
+    return $plural ? ts('Mailing Groups') : ts('Mailing Group');
   }
 
   /**