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
Name![]() |
Location | Description |
---|---|---|
Example: Vertical Tabs |
modules/ |
This example demonstrates the vertical tabs functionality. |
Example: Token API |
modules/ |
This example demonstrates how to use the token API. |
Example: Theming |
modules/ |
This example demonstrates the usage of Backdrop theming. |
Example: Tablesort |
modules/ |
This example demonstrates how to create a sortable table display. |
Example: Tabledrag |
modules/ |
This example demonstrates the usage of draggable table rows. |
Example: Simpletest |
modules/ |
This example demonstrates how to implement simpletest tests. |
Example: Render |
modules/ |
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: Queue |
modules/ |
This example demonstrates how to use the queue API. |
Example: Pager |
modules/ |
This example demonstrates a page with content in a pager. |
Example: Page |
modules/ |
This example demonstrates how a module can display a page at a given URL. |
Example: Node type |
modules/ |
This example demonstrates how to programmatically define a content type. |
Example: Node Hooks |
modules/ |
This example demonstrates how to use node hooks. |
Example: Node Access |
modules/ |
This example demonstrates how to use the node access. |
Example: Menu |
modules/ |
This example demonstrates how to use the menu API. |
Example: JavaScript |
modules/ |
This example demonstrates how to use the Backdrop's built-in JavaScript. |
Example: Image |
modules/ |
This example demonstrates the basic usage of the image API. |
Example: Form API |
modules/ |
This example demonstrates how to use the form API. |
Example: Filter |
modules/ |
This example demonstrates how filters are created. |
Example: Files |
modules/ |
This example demonstrates how to use the file API and the stream wrappers. |
Example: Field Types API |
modules/ |
This example demonstrates how to use the field types API. |
Example: Field Permissions |
modules/ |
This example demonstrates how to use permissions on a Field API field. |
Example: Entity |
modules/ |
This example demonstrates how to create an entity. |
Example: Email |
modules/ |
This example demonstrates how to use the mail API. |
Example: Database |
modules/ |
This example demonstrates how to use the database API. |
Example: Cron |
modules/ |
This example demonstrates how to use the Cron API, including hook_cron() and hook_cron_queue_info(). |
Example: Contextual Links |
modules/ |
This example demonstrates how to implement contextual links. |
Example: Cache API |
modules/ |
This example demonstrates how a module can use the Cache API. |
Example: Block |
modules/ |
This example demonstrates how blocks are created. |
Example: Batch API |
modules/ |
This example demonstrates how a module can use the Batch API. |
Example: AJAX Graceful Degradation |
modules/ |
These examples show AJAX with graceful degradation when JavaScript is not available. |
Example: AJAX |
modules/ |
This example demonstrates some basic AJAX concepts. |
Example: Action |
modules/ |
This example demonstrates how to create actions. |