Well-documented API examples for a broad range of Backdrop core functionality.
Developers can learn how to use a particular API quickly by experimenting with the examples, and adapt them for their own use.
Based on the Examples for Developers Project at http://DOCUMENTATION_PENDING/project/examples
File
- modules/
examples/ examples.module, line 14 - This file serves as a stub file for the many Examples modules in the Examples for Developers Project which you can download and experiment with.
Sub-Topics
Name![]() |
Location | Description |
---|---|---|
Example: Action |
modules/ |
Creating actions in Backdrop |
Example: AJAX |
modules/ |
These examples show basic AJAX concepts. |
Example: AJAX Graceful Degradation |
modules/ |
These examples show AJAX with graceful degradation when Javascript is not available. |
Example: Batch API |
modules/ |
Outlines how a module can use the Batch API. |
Example: Block |
modules/ |
Demonstrates code creation of blocks. |
Example: Cache API |
modules/ |
Outlines how a module can use the Cache API. |
Example: Contextual Links |
modules/ |
Example of implementing contextual links. |
Example: Cron |
modules/ |
Example using Cron API, including hook_cron() and hook_cron_queue_info(). |
Example: Database (DBTNG) |
modules/ |
Database examples, including DBTNG. |
Example: Email |
modules/ |
Example of how to use Backdrop's mail API. |
Example: Entity |
modules/ |
Example creating a core Entity API entity. |
Example: Field Permissions |
modules/ |
Example using permissions on a Field API field. |
Example: Field Types API |
modules/ |
Examples using Field Types API. |
Example: Files |
modules/ |
Examples demonstrating the backdrop File API (and Stream Wrappers). |
Example: Filter |
modules/ |
Demonstrates the creation of filters. |
Example: Form API |
modules/ |
Examples demonstrating the Backdrop Form API. |
Example: Image |
modules/ |
Demonstrates the basic use of image API. |
Example: JavaScript |
modules/ |
Examples using Backdrop's built-in JavaScript. |
Example: Menu |
modules/ |
Demonstrates uses of the Menu APIs in Backdrop. |
Example: Node |
modules/ |
Example defining a node type in code. |
Example: Node Access |
modules/ |
Demonstrates node access. |
Example: NodeAPI |
modules/ |
Example using NodeAPI. |
Example: Page |
modules/ |
This example demonstrates how a module can display a page at a given URL. |
Example: Pager |
modules/ |
Example of a results pager. |
Example: Queue |
modules/ |
Demonstrating the Queue API |
Example: Render |
modules/ |
Demonstrate how render arrays are arranged and how they can be altered. This alters blocks and the page to show the actual render array that is being used to create each item. |
Example: Simpletest |
modules/ |
An example of simpletest tests to accompany the tutorial at https://api.backdropcms.org/node/41659. |
Example: Tabledrag |
modules/ |
Example of draggable table rows. |
Example: Tablesort |
modules/ |
Example of a sortable table display. |
Example: Theming |
modules/ |
Example of Backdrop theming. |
Example: Token API |
modules/ |
Examples using the Token API. |
Example: Vertical Tabs |
modules/ |
Demonstrates the vertical tabs functionality provided by Backdrop. |