Functions - 7.x - drupal

Primary tabs

Title Deprecated File name Summary Direct uses Strings
form_process_password_confirm includes/form.inc Expand a password_confirm field into two text boxes. 1
form_process_radios includes/form.inc Expands a radios element into individual radio elements. 1
form_process_select includes/form.inc Processes a select list form element. 1
form_process_tableselect includes/form.inc Creates checkbox or radio elements to populate a tableselect table. 1
form_process_vertical_tabs includes/form.inc Creates a group formatted as vertical tabs. 1
form_process_weight includes/form.inc Expands a weight element into a select element. 1 1
form_select_options includes/form.inc Converts an array of options into HTML, for use in select list form elements. 1
form_set_cache includes/form.inc Stores a form in the cache. 5
form_set_error includes/form.inc Files an error against a form element. 85 1
form_set_value includes/form.inc Changes submitted form values during form validation. 24
form_state_defaults includes/form.inc Retrieves default values for the $form_state array. 9
form_state_keys_no_cache includes/form.inc Returns an array of $form_state keys that shouldn't be cached. 2
form_state_values_clean includes/form.inc Removes internal Form API elements and buttons from submitted form values. 8
form_storage_test_form_continue_submit modules/simpletest/tests/form_test.module Form submit handler to continue multi-step form. 1
form_test_alter_form modules/simpletest/tests/form_test.module Form builder for testing hook_form_alter() and hook_form_FORM_ID_alter(). 2
form_test_cache_form modules/simpletest/tests/form_test.module A simple form for testing form caching. 2
form_test_checkboxes_radios modules/simpletest/tests/form_test.module Form constructor to test expansion of #type checkboxes and radios. 1
form_test_checkboxes_zero modules/simpletest/tests/form_test.module 1
form_test_checkbox_type_juggling modules/simpletest/tests/form_test.module 1
form_test_clicked_button modules/simpletest/tests/form_test.module Form builder to test button click detection. 1
form_test_clicked_button_submit modules/simpletest/tests/form_test.module Form submit handler for the form_test_clicked_button() form.
form_test_clicked_button_validate modules/simpletest/tests/form_test.module Form validation handler for the form_test_clicked_button() form.
form_test_double_form modules/simpletest/tests/form_test.module Menu callback returns two instances of the same form. 1
form_test_element_validate_name modules/simpletest/tests/form_test.module Form element validation handler for 'name' in form_test_validate_form(). 1
form_test_form_alter modules/simpletest/tests/form_test.module Implements hook_form_alter().
form_test_form_form_test_alter_form_alter modules/simpletest/tests/form_test.module Implements hook_form_FORM_ID_alter().
form_test_form_form_test_state_persist_alter modules/simpletest/tests/form_test.module Implements hook_form_FORM_ID_alter().
form_test_form_rebuild_preserve_values_form modules/simpletest/tests/form_test.module Form builder for testing preservation of values during a rebuild. 1
form_test_form_rebuild_preserve_values_form_add_more modules/simpletest/tests/form_test.module Button submit handler for form_test_form_rebuild_preserve_values_form(). 1
form_test_form_rebuild_preserve_values_form_submit modules/simpletest/tests/form_test.module Form submit handler for form_test_form_rebuild_preserve_values_form().
form_test_form_state_values_clean_advanced_form modules/simpletest/tests/form_test.module Form constructor for the form_state_values_clean() test. 1
form_test_form_state_values_clean_advanced_form_submit modules/simpletest/tests/form_test.module Form submission handler for form_test_form_state_values_clean_advanced_form().
form_test_form_state_values_clean_form modules/simpletest/tests/form_test.module Form builder for form_state_values_clean() test. 1
form_test_form_state_values_clean_form_submit modules/simpletest/tests/form_test.module Form submit handler for form_state_values_clean() test form.
form_test_form_user_register_form_alter modules/simpletest/tests/form_test.module Implements hook_form_FORM_ID_alter() for the registration form.
form_test_html_id modules/simpletest/tests/form_test.module Builds a simple form to test duplicate HTML IDs. 1
form_test_limit_validation_errors_element_validate_test modules/simpletest/tests/form_test.module Form element validation handler for the 'test' element. 1
form_test_limit_validation_errors_form modules/simpletest/tests/form_test.module Builds a simple form with a button triggering partial validation. 1
form_test_limit_validation_errors_form_partial_submit modules/simpletest/tests/form_test.module Form submit handler for the partial validation submit button. 1
form_test_load_include_custom modules/simpletest/tests/form_test.module Menu callback for testing custom form includes. 1
form_test_load_include_menu modules/simpletest/tests/form_test.file.inc Form constructor for testing FAPI file inclusion of the file specified in hook_menu(). 1
form_test_load_include_menu_ajax modules/simpletest/tests/form_test.file.inc Ajax callback for the file inclusion via menu test. 1
form_test_load_include_submit modules/simpletest/tests/form_test.file.inc Submit callback for the form API file inclusion test forms. 2
form_test_menu modules/simpletest/tests/form_test.module Implements hook_menu().
form_test_programmatic_form modules/simpletest/tests/form_test.module Form builder to test programmatic form submissions. 1
form_test_programmatic_form_submit modules/simpletest/tests/form_test.module Form submit handler for programmatic form submissions. 1
form_test_programmatic_form_validate modules/simpletest/tests/form_test.module Form validation handler for programmatic form submissions.
form_test_redirect modules/simpletest/tests/form_test.module Form builder to detect form redirect. 1
form_test_redirect_submit modules/simpletest/tests/form_test.module Form submit handler to test different redirect behaviours.
form_test_select modules/simpletest/tests/form_test.module Builds a form to test #type 'select' validation. 1 1

Other projects


Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.