* then it probably means there is some functionality that needs to be moved
* out of the form layer
*
- * @param unknown_type $params
+ * @param array $params
*
* @return bool
*/
}
/**
- * @param $rows
+ * @param array $rows
*/
public function mergeSameAddress(&$rows) {
$uniqueAddress = array();
if (!$membershipId) {
// CRM-15475
$statusIds[] = array_search(
- 'Cancelled',
+ 'Cancelled',
CRM_Member_PseudoConstant::membershipStatus(
- NULL,
- " name = 'Cancelled' ",
- 'name',
- FALSE,
+ NULL,
+ " name = 'Cancelled' ",
+ 'name',
+ FALSE,
TRUE
)
);
!in_array($dao->status_id, array(array_search('Pending', $allStatus),
// CRM-15475
array_search(
- 'Cancelled',
+ 'Cancelled',
CRM_Member_PseudoConstant::membershipStatus(NULL, " name = 'Cancelled' ", 'name', FALSE, TRUE)
),
array_search('Expired', $allStatus),
2 => array(
// CRM-15475
array_search(
- 'Cancelled',
+ 'Cancelled',
CRM_Member_PseudoConstant::membershipStatus(
- NULL,
- " name = 'Cancelled' ",
- 'name',
- FALSE,
+ NULL,
+ " name = 'Cancelled' ",
+ 'name',
+ FALSE,
TRUE
)
- ),
+ ),
'Integer'
),
3 => array($isTest, 'Boolean'),
if ($checkCheckBoxField && !empty($fields['custom_' . $customFieldID]) && $fields['custom_' . $customFieldID]['html_type'] == 'CheckBox') {
formatCheckBoxField($value, 'custom_' . $customFieldID, $entity);
}
-
+
CRM_Core_BAO_CustomField::formatCustomField($customFieldID, $values['custom'],
$value, $extends, $customValueID, $entityId, FALSE, FALSE, TRUE
);
/**
* Validate integer fields being passed into API.
- * It currently converts the incoming value 'user_contact_id' into the id of the currenty logged in user
+ * It currently converts the incoming value 'user_contact_id' into the id of the currently logged in user
*
* @param array $params params from civicrm_api
* @param string $fieldName uniquename of field being checked
/**
* @param $customGrpId1
- * @param int $customId
+ * @param array $customId
*/
public function _testDeleteCustomData($customGrpId1, $customId) {
// delete all custom data