[$id, 'Integer']]; $openids = $values = []; $dao = CRM_Core_DAO::executeQuery($query, $params); $count = 1; while ($dao->fetch()) { $values = [ 'locationType' => $dao->locationType, 'is_primary' => $dao->is_primary, 'id' => $dao->openid_id, 'openid' => $dao->openid, 'locationTypeId' => $dao->locationTypeId, 'allowed_to_login' => $dao->allowed_to_login, ]; if ($updateBlankLocInfo) { $openids[$count++] = $values; } else { $openids[$dao->openid_id] = $values; } } return $openids; } /** * Call common delete function. * * @see \CRM_Contact_BAO_Contact::on_hook_civicrm_post * * @param int $id * @deprecated * @return bool */ public static function del($id) { return (bool) self::deleteRecord(['id' => $id]); } }