DAOs with singular/plural options for entity titles
[civicrm-core.git] / CRM / Campaign / DAO / Campaign.php
index 742996a6bde2c84ddbd4e249d59b731576110a99..8dc0245910ea1a95712955f831fe5589ae63c872 100644 (file)
@@ -6,7 +6,7 @@
  *
  * Generated from xml/schema/CRM/Campaign/Campaign.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:cfa77579eb9b91b31b6c5618b52c6e87)
+ * (GenCodeChecksum:a5a49e13e66a5d32b690835a49baf535)
  */
 
 /**
@@ -166,9 +166,12 @@ class CRM_Campaign_DAO_Campaign 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('Campaigns');
+  public static function getEntityTitle($plural = FALSE) {
+    return $plural ? ts('Campaigns') : ts('Campaign');
   }
 
   /**