Functions - 7.x-1.x - examples

Primary tabs

Title Deprecated File name Summary Direct uses Strings
contextual_links_example_block_info contextual_links_example/contextual_links_example.module Implements hook_block_info().
contextual_links_example_block_view contextual_links_example/contextual_links_example.module Implements hook_block_view().
contextual_links_example_menu contextual_links_example/contextual_links_example.module Implements hook_menu().
contextual_links_example_node_action_form contextual_links_example/contextual_links_example.module Form callback; display the form for performing an example action on a node. 1
contextual_links_example_node_action_form_submit contextual_links_example/contextual_links_example.module Submit handler for contextual_links_example_node_action_form().
contextual_links_example_object_edit_form contextual_links_example/contextual_links_example.module Form callback; display the form for editing our module's content. 1
contextual_links_example_object_edit_form_submit contextual_links_example/contextual_links_example.module Submit handler for contextual_links_example_object_edit_form().
contextual_links_example_object_load contextual_links_example/contextual_links_example.module Menu loader callback for the object defined by this module. 2
contextual_links_example_object_page contextual_links_example/contextual_links_example.module Menu callback; displays an object defined by this module on its own page. 1
contextual_links_example_theme contextual_links_example/contextual_links_example.module Implements hook_theme().
contextual_links_overview_page contextual_links_example/contextual_links_example.module Menu callback; displays a listing of objects defined by this module. 1
cron_example_add_jobs_to_queue cron_example/cron_example.module Submit function used to add the items to the queue. 1
cron_example_cron cron_example/cron_example.module Implements hook_cron().
cron_example_cron_queue_info cron_example/cron_example.module Implements hook_cron_queue_info().
cron_example_form cron_example/cron_example.module The form to provide a link to cron.php. 1
cron_example_form_cron_run_submit cron_example/cron_example.module Allow user to directly execute cron, optionally forcing it. 1
cron_example_menu cron_example/cron_example.module Implements hook_menu().
cron_example_queue_1_worker cron_example/cron_example.module Simple worker for our queues. 1
cron_example_queue_2_worker cron_example/cron_example.module Simple worker for our queues. 1
cron_example_queue_report_work cron_example/cron_example.module Simple reporter for the workers. 2
dbtng_example_advanced_list dbtng_example/dbtng_example.module Render a filtered list of entries in the database. 1
dbtng_example_convert_resultset_to_table_render_array dbtng_example/dbtng_example.module This function renders array for table 'dbtng_example' 1
dbtng_example_entry_delete dbtng_example/dbtng_example.module Delete an entry from the database. 1
dbtng_example_entry_insert dbtng_example/dbtng_example.module Save an entry in the database. 2
dbtng_example_entry_load dbtng_example/dbtng_example.module Read from the database using a filter array. 5
dbtng_example_entry_update dbtng_example/dbtng_example.module Update an entry in the database. 2
dbtng_example_execute_group_by_select_query dbtng_example/dbtng_example.module The code below will result in the following query SELECT ex.pid AS pid, ex.uid AS uid, ex.name AS name, ex.surname AS surname, ex.age AS age FROM {dbtng_example} ex GROUP BY ex.age 1
dbtng_example_form_add dbtng_example/dbtng_example.module Prepare a simple form to add an entry, with all the interesting fields. 1
dbtng_example_form_add_submit dbtng_example/dbtng_example.module Submit handler for 'add entry' form.
dbtng_example_form_update dbtng_example/dbtng_example.module Sample UI to update a record. 1
dbtng_example_form_update_callback dbtng_example/dbtng_example.module AJAX callback handler for the pid select. 1
dbtng_example_form_update_submit dbtng_example/dbtng_example.module Submit handler for 'update entry' form.
dbtng_example_grouping_list dbtng_example/dbtng_example.module This function groups the result set by the specified field and render a list of entries in the database 1
dbtng_example_help dbtng_example/dbtng_example.module Implements hook_help().
dbtng_example_install dbtng_example/dbtng_example.install Implements hook_install().
dbtng_example_list dbtng_example/dbtng_example.module Render a list of entries in the database. 1
dbtng_example_menu dbtng_example/dbtng_example.module Implements hook_menu().
dbtng_example_render_resultset_as_table dbtng_example/dbtng_example.module This function renders a resultset as table 1
dbtng_example_schema dbtng_example/dbtng_example.install Implements hook_schema().
dbtng_example_selective_list dbtng_example/dbtng_example.module Select only certain fields from the database 1
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 Implements hook_mail().
email_example_mail_alter email_example/email_example.module Implements hook_mail_alter().
email_example_mail_send email_example/email_example.module Sends an e-mail. 1
email_example_menu email_example/email_example.module Implements hook_menu().
entity_example_basic_add entity_example/entity_example.module Provides a wrapper on the edit form to add a new entity. 1
entity_example_basic_delete entity_example/entity_example.module Use the controller to delete the entity. 1
entity_example_basic_edit_delete entity_example/entity_example.module Form deletion handler. 1

Other projects