These modules are well-documented API examples for a broad range of Backdrop core functionality.

Developers can quickly learn how to use a particular API by experimenting with the examples, and adapt them for their own use.

This project is based on the Examples for Developers project for Drupal.

File

modules/examples/examples.module, line 13
This file serves as a stub file for the many example modules in the Examples for Developers project.

Sub-Topics

Namesort descending Location Description
Example: Action modules/examples/action_example/action_example.module This example demonstrates how to create actions.
Example: AJAX modules/examples/ajax_example/ajax_example.module This example demonstrates some basic AJAX concepts.
Example: AJAX Graceful Degradation modules/examples/ajax_example/ajax_example_graceful_degradation.inc These examples show AJAX with graceful degradation when JavaScript is not available.
Example: Batch API modules/examples/batch_example/batch_example.module This example demonstrates how a module can use the Batch API.
Example: Block modules/examples/block_example/block_example.module This example demonstrates how blocks are created.
Example: Cache API modules/examples/cache_example/cache_example.module This example demonstrates how a module can use the Cache API.
Example: Contextual Links modules/examples/contextual_links_example/contextual_links_example.module This example demonstrates how to implement contextual links.
Example: Cron modules/examples/cron_example/cron_example.module This example demonstrates how to use the Cron API, including hook_cron() and hook_cron_queue_info().
Example: Database modules/examples/database_example/database_example.module This example demonstrates how to use the database API.
Example: Email modules/examples/email_example/email_example.module This example demonstrates how to use the mail API.
Example: Entity modules/examples/entity_example/entity_example.module This example demonstrates how to create an entity.
Example: Field Permissions modules/examples/field_permission_example/field_permission_example.module This example demonstrates how to use permissions on a Field API field.
Example: Field Types API modules/examples/field_example/field_example.module This example demonstrates how to use the field types API.
Example: Files modules/examples/file_example/file_example.module This example demonstrates how to use the file API and the stream wrappers.
Example: Filter modules/examples/filter_example/filter_example.module This example demonstrates how filters are created.
Example: Form API modules/examples/form_example/form_example.module This example demonstrates how to use the form API.
Example: Image modules/examples/image_example/image_example.module This example demonstrates the basic usage of the image API.
Example: JavaScript modules/examples/js_example/js_example.module This example demonstrates how to use the Backdrop's built-in JavaScript.
Example: Menu modules/examples/menu_example/menu_example.module This example demonstrates how to use the menu API.
Example: Node Access modules/examples/node_access_example/node_access_example.module This example demonstrates how to use the node access.
Example: Node Hooks modules/examples/node_hooks_example/node_hooks_example.module This example demonstrates how to use node hooks.
Example: Node type modules/examples/node_type_example/node_type_example.module This example demonstrates how to programmatically define a content type.
Example: Page modules/examples/page_example/page_example.module This example demonstrates how a module can display a page at a given URL.
Example: Pager modules/examples/pager_example/pager_example.module This example demonstrates a page with content in a pager.
Example: Queue modules/examples/queue_example/queue_example.module This example demonstrates how to use the queue API.
Example: Render modules/examples/render_example/render_example.module This example demonstrates how render arrays are arranged and how they can be altered. This alters blocks and the page to show the actual render array used to create each item.
Example: Simpletest modules/examples/simpletest_example/simpletest_example.module This example demonstrates how to implement simpletest tests.
Example: Tabledrag modules/examples/tabledrag_example/tabledrag_example.module This example demonstrates the usage of draggable table rows.
Example: Tablesort modules/examples/tablesort_example/tablesort_example.module This example demonstrates how to create a sortable table display.
Example: Theming modules/examples/theming_example/theming_example.module This example demonstrates the usage of Backdrop theming.
Example: Token API modules/examples/token_example/token_example.module This example demonstrates how to use the token API.
Example: Vertical Tabs modules/examples/vertical_tabs_example/vertical_tabs_example.module This example demonstrates the vertical tabs functionality.