Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
http://api.drupal.org/api/drupal/developer!topics!forms_api_reference.ht...
States:
exists: A function name to invoke for checking whether a submitted machine name value already exists. The submitted value is passed as argument.
The full signature for this callback is shown in form.inc where it is called:
if ($function($element['#value'], $element, $form_state)) {
Comments
Comment #1
jhodgdonThanks! For future reference, any issues related to things on api.drupal.org (Documentation project git repository files) go into Component = "API Documentation Files".
Comment #2
jhodgdon(That is so that non-programmers looking at the Documentation project issue queue can ignore these issues, because the queue is also/mainly used for issues in the on-line documentation.)