From a43adbadda66eca1111652e9896912ae66ca6923 Mon Sep 17 00:00:00 2001 From: Saurabh Batra Date: Fri, 28 Apr 2017 10:34:10 +1200 Subject: [PATCH] Minor tidy ups. Fix comments. Remove unused function. The function has a mismatch between input & parameter so can never work --- CRM/Core/BAO/UFField.php | 20 +++----------------- 1 file changed, 3 insertions(+), 17 deletions(-) diff --git a/CRM/Core/BAO/UFField.php b/CRM/Core/BAO/UFField.php index 46374aaee6..00bc96c9e1 100644 --- a/CRM/Core/BAO/UFField.php +++ b/CRM/Core/BAO/UFField.php @@ -57,20 +57,6 @@ class CRM_Core_BAO_UFField extends CRM_Core_DAO_UFField { return CRM_Core_DAO::commonRetrieve('CRM_Core_DAO_UFField', $params, $defaults); } - /** - * Get the form title. - * - * @param int $id - * Id of uf_form. - * - * @return string - * title - * - */ - public static function getTitle($id) { - return CRM_Core_DAO::getFieldValue('CRM_Core_DAO_UFField', $groupId, 'title'); - } - /** * Update the is_active flag in the db. * @@ -247,13 +233,13 @@ WHERE cf.id IN (" . $customFieldIds . ") AND is_multiple = 1 LIMIT 0,1"; * Set the is_active field. */ public static function setUFField($customFieldId, $is_active) { - //find the profile id given custom field + // Find the profile id given custom field. $ufField = new CRM_Core_DAO_UFField(); $ufField->field_name = "custom_" . $customFieldId; $ufField->find(); while ($ufField->fetch()) { - //enable/ disable profile + // Enable/ disable profile. CRM_Core_BAO_UFField::setIsActive($ufField->id, $is_active); } } @@ -315,7 +301,7 @@ WHERE cf.id IN (" . $customFieldIds . ") AND is_multiple = 1 LIMIT 0,1"; $dao = CRM_Core_DAO::executeQuery($queryString, $p); while ($dao->fetch()) { - //enable/ disable profile + // Enable/ disable profile. CRM_Core_BAO_UFField::setUFField($dao->custom_field_id, $is_active); } } -- 2.25.1