You are here

Functions in Examples for Developers 6

Primary tabs

Namesort descending Location Description Direct uses Strings
ahah_example_autocheckboxes ahah_example/ahah_example_autocheckboxes.inc @file A Self-configure a form based on a select control. Add the number of checkboxes specified in the select. 1
ahah_example_autocheckboxes_callback ahah_example/ahah_example_autocheckboxes.inc Callback for autocheckboxes. Process the form with the number of checkboxes we want to provide. 1
ahah_example_autocheckboxes_submit ahah_example/ahah_example_autocheckboxes.inc Submit handler for autocheckboxes. Gets called even when our select is active, so we use the $form_state to determine whether the submit handler should actually do anything.
ahah_example_autotextfields ahah_example/ahah_example_autotextfields.inc @file Show/hide textfields based on checkbox clicks. 1
ahah_example_autotextfields_callback ahah_example/ahah_example_autotextfields.inc 1
ahah_example_autotextfields_submit ahah_example/ahah_example_autotextfields.inc Submit handler for autotextfields. Gets called even when our select is active, so we use the $form_state to determine whether the submit handler should actually do anything.
ahah_example_callback_helper ahah_example/ahah_example.module Does the very standard things that must be done in any normal callback. Used by each callback in this example module. 4
ahah_example_dropdown ahah_example/ahah_example_dependent_dropdown.inc Form builder function to create a form showing dependent dropdowns. The second dropdown has its values populated based on the first. 1
ahah_example_dropdown_callback ahah_example/ahah_example_dependent_dropdown.inc The AHAH callback. It processes the form using ahah_example_callback_helper() and then 1
ahah_example_dropdown_continue ahah_example/ahah_example_dependent_dropdown.inc Submit handler for 'continue_to_dependent_dropdown'. 1
ahah_example_dropdown_submit ahah_example/ahah_example_dependent_dropdown.inc Default submit handler for form. This one happens when the main submit button is pressed.
ahah_example_init ahah_example/ahah_example.module Implements hook_init() to add module css.
ahah_example_menu ahah_example/ahah_example.module Implement hook_menu().
ahah_example_simplest ahah_example/ahah_example_simplest_ahah.inc This trivial form builder function just creates a box as a section on the page which can be replaced when AHAH-enabled submit element fires. 1
ahah_example_simplest_callback ahah_example/ahah_example_simplest_ahah.inc This callback has nothing to do with the form itself, so just returns a bit of HTML that will replace the existing markup in $form['box']. 1
ahah_example_simple_validation ahah_example/ahah_example_simple_validation.inc @file Demonstrate validation of a textfield using AHAH. This approach allows 'live' validation of a field which degrades gracefully when JavaScript is not available. 1
ahah_example_simple_validation_callback ahah_example/ahah_example_simple_validation.inc Callback for simple validation. 1
ahah_example_simple_validation_submit ahah_example/ahah_example_simple_validation.inc Submit handler for simple validation.
ahah_example_simple_validation_validate ahah_example/ahah_example_simple_validation.inc Validation function for the form. Requires that two words be entered.
batch_example_batch_1 batch_example/batch_example.module Batch 1 : Load 100 times the node with the lowest nid 2
batch_example_batch_2 batch_example/batch_example.module Batch 2 : load all nodes 5 by 5, 20 times (Multipart operation) 1
batch_example_finished batch_example/batch_example.module Batch 'finished' callback used by both batch 1 and batch 2 2
batch_example_menu batch_example/batch_example.module Implementation of hook_menu().
batch_example_multistep_form batch_example/batch_example.module Multistep form 1
batch_example_multistep_form_submit batch_example/batch_example.module
batch_example_op_1 batch_example/batch_example.module Batch operation for batch 1 : load a node... 1
batch_example_op_2 batch_example/batch_example.module Batch operation for batch 2 : load all nodes, 5 by five This is a multipart operation, using the 1
batch_example_page batch_example/batch_example.module 1
batch_example_simple_form batch_example/batch_example.module Test 1 : Simple form 1
batch_example_simple_form_submit batch_example/batch_example.module Submit handler for the form 'batch_example_simple_form'.
batch_test_update_1 batch_example/batch_example.install
block_example_block block_example/block_example.module Implementation of hook_block().
block_example_contents block_example/block_example.module A block content function. 1
block_example_uninstall block_example/block_example.install Implementation of hook_uninstall().
email_example_form email_example/email_example.module The contact form. 1
email_example_form_submit email_example/email_example.module Form submission logic for the contact form.
email_example_form_validate email_example/email_example.module Form validation logic for the contact form.
email_example_mail email_example/email_example.module Implementation of hook_mail().
email_example_mail_alter email_example/email_example.module Implementation of hook_mail_alter().
email_example_mail_send email_example/email_example.module Send an e-mail. 1
email_example_menu email_example/email_example.module Implementation of hook_menu().
examples_help ./examples.module Implementation of hook_help().
filter_example_filter filter_example/filter_example.module Implementation of hook_filter().
filter_example_filter_tips filter_example/filter_example.module Implementation of hook_filter_tips().
form_example_elements form_example/form_example.module Implementation of form_example_elements().
form_example_element_demo_form form_example/form_example_elements.inc This is a simple form to demonstrate how to use the various new FAPI elements we've defined. 1
form_example_element_demo_form_submit form_example/form_example_elements.inc Submit handler for form_example_element_demo_form().
form_example_help form_example/form_example.module Implements hook_help() to provide a bit of help.
form_example_info form_example/form_example.module Simple page callback to give feedback to the user about this example. 1
form_example_menu form_example/form_example.module Implements hook_menu() to set up the URLs (menu entries) for the form examples.

Pages

Other projects