Install

Works with Drupal: ^8 || ^9 || ^10 || ^11

Using Composer to manage Drupal site dependencies

Alternative installation files

Download tar.gz 13.15 KB
MD5: 876f0ae9e02cf9c9d957b359d7e85313
SHA-1: 81ca202245d6b6cf7e68b183cf3a262a2a2b2ba6
SHA-256: 3fecb6447a96fee383fc8293c6e87ca1594d4ac2d0f183468fb8643f0cf4ce8f
Download zip 22.67 KB
MD5: b2721c523235951c3544b881e5748f26
SHA-1: 60b9bbd92b906fc19e9ae7d739a13d5e904d821c
SHA-256: ee2bcbf19228676243a4adf71f85bfcf8fbb7e9c6a4f3f41f5a14a1e76f54a91

Release notes

This release fixes T.C. Kimlik No validation and adds an optional Webform element. All users should upgrade: earlier releases accepted some invalid numbers and rejected some valid ones.

Bug fixes

  • #3630848: TckkValidator accepted invalid and rejected valid numbers.
    • Input must now be exactly 11 digits and must not start with 0. Earlier releases removed non-digit characters before checking, and the leading zero check never ran.
    • A trailing newline is no longer accepted.
    • The 10th digit is now calculated correctly when the weighted difference is negative. Earlier releases rejected some valid numbers in this case.
    • Added unit tests.

New features

  • #3630849: Webform element for T.C. Kimlik No.
    • New optional submodule tckk_field_webform, which requires Webform. Enabling it adds a "T.C. Kimlik No" element to the Webform element list under "Advanced elements". The element supports #states, submission display and export.
    • The tckk Form API element now renders #maxlength, #size and #placeholder.
    • The tckk element accepts a custom error message through #tckk_error.
    • Non-scalar input no longer causes a fatal error.
    • Added a README.

Upgrade notes

  • There are no database updates or configuration changes.
  • Values that were saved before this release are not re-validated. Some of them may now fail validation: numbers with spaces or other non-digit characters, numbers with a leading zero, and numbers with an incorrect checksum. These values are rejected the next time the form is saved.
  • Fields still have no entity validation constraint. Values saved without a form (for example through REST, migrations or code) are still not validated.

Contributors

Created by: orkutmuratyilmaz
Created on: 15 Oct 2026 at 06:25 UTC
Last updated: 15 Oct 2026 at 06:26 UTC
Bug fixes
New features

Other releases