Functions to enable the processing and display of HTML forms.
Drupal uses these functions to achieve consistency in its form processing and presentation, while simplifying code and reducing the amount of HTML that must be explicitly generated by modules.
146781863 | date_validate | Validates the date type to stop dates like February 30, 2006. | |
146781864 | drupal_build_form | Build and process a form based on a form id. | |
146781865 | drupal_form_submit | Retrieves, populates, and processes a form. | |
146781866 | drupal_get_form | Wrapper for drupal_build_form() for use when $form_state is not needed. | |
146781867 | drupal_prepare_form | Prepares a structured form array by adding required elements, executing any hook_form_alter functions, and optionally inserting a validation token to prevent tampering. | |
146781868 | drupal_process_form | Processes a form submission. | |
146781869 | drupal_rebuild_form | Constructs a new $form from the information in $form_state. | |
146781870 | drupal_redirect_form | Redirects the user to a URL after a form has been processed. | |
146781871 | drupal_retrieve_form | Retrieves the structured array that defines a given form. | |
146781872 | drupal_validate_form | Validates user-submitted form data from the $form_state using the validate functions defined in a structured form array. | |
146781873 | form_builder | Walk through the structured form array, adding any required properties to each element and mapping the incoming input data to the proper elements. Also, execute any #process handlers attached to a specific element. | |
146781874 | form_clear_error | Clear all errors against all form elements made by form_set_error(). | |
146781875 | form_error | Flag an element as having an error. | |
146781876 | form_execute_handlers | A helper function used to execute custom validation and submission handlers for a given form. Button-specific handlers are checked first. If none exist, the function falls back to form-level handlers. | |
146781877 | form_get_cache | Fetch a form from cache. | |
146781878 | form_get_error | Returns the error message filed against the given form element. | |
146781879 | form_get_errors | Return an associative array of all errors. | |
146781880 | form_get_options | Traverses a select element's #option array looking for any values that hold the given key. Returns an array of indexes that match. | |
146781881 | form_load_include | Loads an include file and makes sure it is loaded whenever the form is processed. | |
146781882 | form_options_flatten | Allows PHP array processing of multiple select options with the same value. | |
146781883 | form_pre_render_conditional_form_element | Add form_element theming to an element if title or description is set. | |
146781884 | form_pre_render_fieldset | Adds members of this group as actual elements for rendering. | |
146781885 | form_process_actions | Processes a form actions container element. | |
146781886 | form_process_checkbox | Sets the #checked property of a checkbox element. | |
146781887 | form_process_checkboxes | ... | |
146781888 | form_process_container | Processes a container element. | |
146781889 | form_process_date | Roll out a single date element. | |
146781890 | form_process_fieldset | Adds fieldsets to the specified group or adds group members to this fieldset. | |
146781891 | form_process_machine_name | Processes a machine-readable name form element. | |
146781892 | form_process_password_confirm | Expand a password_confirm field into two text boxes. | |
146781893 | form_process_radios | Roll out a single radios element to a list of radios, using the options array as index. | |
146781894 | form_process_select | Processes a select list form element. | |
146781895 | form_process_tableselect | Create the correct amount of checkbox or radio elements to populate the table. | |
146781896 | form_process_vertical_tabs | Creates a group formatted as vertical tabs. | |
146781897 | form_process_weight | Expand weight elements into selects. | |
146781898 | form_select_options | Converts a select form element's options array into an HTML. | |
146781899 | form_set_cache | Store a form in the cache. | |
146781900 | form_set_error | Files an error against a form element. | |
146781901 | form_set_value | Change submitted form values during form validation. | |
146781902 | form_state_defaults | Retrieve default values for the $form_state array. | |
146781903 | form_state_keys_no_cache | Returns an array of $form_state keys that shouldn't be cached. | |
146781904 | form_state_values_clean | Removes internal Form API elements and buttons from submitted form values. | |
146781905 | form_type_checkboxes_value | Helper function to determine the value for a checkboxes form element. | |
146781906 | form_type_checkbox_value | Helper function to determine the value for a checkbox form element. | |
146781907 | form_type_image_button_value | Helper function to determine the value for an image button form element. | |
146781908 | form_type_password_confirm_value | Helper function to determine the value for a password_confirm form element. | |
146781909 | form_type_select_value | Helper function to determine the value for a select form element. | |
146781910 | form_type_tableselect_value | Helper function to determine the value for a tableselect form element. | |
146781911 | form_type_textfield_value | Helper function to determine the value for a textfield form element. | |
146781912 | form_type_token_value | Helper function to determine the value for form's token value. | |
146781913 | form_validate_machine_name | Form element validation handler for #type 'machine_name'. | |
146781914 | map_month | Helper function for usage with drupal_map_assoc to display month names. | |
146781915 | password_confirm_validate | Validate password_confirm element. | |
146781916 | theme_button | Returns HTML for a button form element. | |
146781917 | theme_checkbox | Returns HTML for a checkbox form element. | |
146781918 | theme_checkboxes | Returns HTML for a set of checkbox form elements. | |
146781919 | theme_container | Returns HTML to wrap child elements in a container. | |
146781920 | theme_date | Returns HTML for a date selection form element. | |
146781921 | theme_fieldset | Returns HTML for a fieldset form element and its children. | |
146781922 | theme_file | Returns HTML for a file upload form element. | |
146781923 | theme_form | Returns HTML for a form. | |
146781924 | theme_form_element | Returns HTML for a form element. | |
146781925 | theme_form_element_label | Returns HTML for a form element label and required marker. | |
146781926 | theme_form_required_marker | Returns HTML for a marker for required form elements. | |
146781927 | theme_hidden | Returns HTML for a hidden form element. | |
146781928 | theme_image_button | Returns HTML for an image button form element. | |
146781929 | theme_password | Returns HTML for a password form element. | |
146781930 | theme_radio | Returns HTML for a radio button form element. | |
146781931 | theme_radios | Returns HTML for a set of radio button form elements. | |
146781932 | theme_select | Returns HTML for a select form element. | |
146781933 | theme_submit | Returns HTML for a submit button form element. | |
146781934 | theme_tableselect | Returns HTML for a table with radio buttons or checkboxes. | |
146781935 | theme_textarea | Returns HTML for a textarea form element. | |
146781936 | theme_textfield | Returns HTML for a textfield form element. | |
146781937 | theme_vertical_tabs | Returns HTML for an element's children fieldsets as vertical tabs. | |
146781938 | weight_value | If no default value is set for weight select boxes, use 0. | |
146781939 | _form_builder_handle_input_element | Populate the #value and #name properties of input elements so they can be processed and rendered. | |
146781940 | _form_button_was_clicked | Helper function to handle the convoluted logic of button click detection. | |
146781941 | _form_element_triggered_scripted_submission | Helper function to handle the convoluted logic of button click detection. | |
146781942 | _form_options_flatten | Helper function for form_options_flatten(). | |
146781943 | _form_set_class | Sets a form element's class attribute. | |
146781944 | _form_validate | Performs validation on form elements. First ensures required fields are completed, #maxlength is not exceeded, and selected options were in the list of options given to the user. Then calls user-defined validators. |