You are here

README.txt in Unique field 5

Same filename and directory in other branches
  1. 8.2 README.txt
  2. 8 README.txt
  3. 6 README.txt
  4. 7 README.txt
/**
 * unique_field: Unique field module for Drupal
 * Compatible with Drupal 5.x
 *
 * By Joe Turgeon [http://arithmetric.com]
 * Version 2009/03/06
 * Licensed under the GPL version 2
 */

The unique field module provides a way to require that specified fields
or characteristics of a node are unique. This includes the node's title,
author, language, and any CCK field.

Without this module, Drupal and CCK do not prevent multiple nodes from
having the same title or the same value in a given field.

For example, if you have a content type with a Date field and there
should only be one node per date, you could use this module to prevent a
node from being saved with a date already used in another node.

This module adds additional options to the content type administration page
for specifying which fields must be unique. The administrator may specify
whether each field must be unique or whether the fields in combination must
be unique. Also, the administrator can choose whether the fields must be
unique among all other nodes or only among nodes from the given node's
content type.

Alternatively, you can select the 'single node' scope, which allows you
to require that the specified fields are each unique on that node. For
example, if a node has multiple, separate user reference fields, this
setting will require that no user is selected more than once on one node.

This does not work well with the 'decimal' field in the CCK 5.x releases, 
due to a problem with the floating point datatype used. (However, this is
fixed in the CCK 6.x release: http://drupal.org/node/109246)

For more information, see this module's page at:
http://drupal.org/project/unique_field

File

README.txt
View source
  1. /**
  2. * unique_field: Unique field module for Drupal
  3. * Compatible with Drupal 5.x
  4. *
  5. * By Joe Turgeon [http://arithmetric.com]
  6. * Version 2009/03/06
  7. * Licensed under the GPL version 2
  8. */
  9. The unique field module provides a way to require that specified fields
  10. or characteristics of a node are unique. This includes the node's title,
  11. author, language, and any CCK field.
  12. Without this module, Drupal and CCK do not prevent multiple nodes from
  13. having the same title or the same value in a given field.
  14. For example, if you have a content type with a Date field and there
  15. should only be one node per date, you could use this module to prevent a
  16. node from being saved with a date already used in another node.
  17. This module adds additional options to the content type administration page
  18. for specifying which fields must be unique. The administrator may specify
  19. whether each field must be unique or whether the fields in combination must
  20. be unique. Also, the administrator can choose whether the fields must be
  21. unique among all other nodes or only among nodes from the given node's
  22. content type.
  23. Alternatively, you can select the 'single node' scope, which allows you
  24. to require that the specified fields are each unique on that node. For
  25. example, if a node has multiple, separate user reference fields, this
  26. setting will require that no user is selected more than once on one node.
  27. This does not work well with the 'decimal' field in the CCK 5.x releases,
  28. due to a problem with the floating point datatype used. (However, this is
  29. fixed in the CCK 6.x release: http://drupal.org/node/109246)
  30. For more information, see this module's page at:
  31. http://drupal.org/project/unique_field