Skip to content
Example modules
Branch: 1.x-1.x
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
action_example
ajax_example
batch_example
block_example Remove getInfo() Jun 24, 2017
cache_example
contextual_links_example
cron_example
dbtng_example
email_example
entity_example
field_example
field_permission_example
file_example
filter_example
form_example
image_example
js_example
menu_example
node_access_example
node_example
nodeapi_example
page_example
pager_example
queue_example
render_example
simpletest_example
tabledrag_example
tablesort_example
theming_example
token_example
vertical_tabs_example
LICENSE.txt
README.md
examples.index.php
examples.info
examples.module

README.md

Examples for Developers

This set of modules is intended to provide working examples of Backdrop's features and APIs. The modules strive to be simple, well documented and modification friendly, in order to help developers quickly learn their inner workings.

These examples are meant to teach you about code-level development for Backdrop. Some solutions might be better served using a contributed module, so that you don't end up having to re-invent the wheel in PHP.

How To Use The Examples

There are three main ways to interact with the examples in this project:

  1. Enable the modules and use them within Backdrop. Not all modules will have obvious things to see within the interface. For instance, while the Page and Form API examples will show you forms, the Database API example will not show you much within Backdrop itself.

  2. Read the code. Much effort has gone into making the example code readable, not only in terms of the code itself, but also the extensive inline comments and documentation blocks.

  3. Browse the code and documentation on the web. There are two main places to do this:

How To Install The Modules

  1. Install Backdrop Module Examples for Developers (unpacking it to your /modules directory if you're installing by hand, for example).

  2. Enable the desired Example modules in admin/modules.

  3. Rebuild access permissions if you are prompted to.

  4. Profit! The examples would appear in your Navigation menu if there was one. (Since we've removed the navigation menu in Backdrop they won't appear anywhere until somebody updates the code.)

Now you can read the code and its comments and see the result, experiment with it, and hopefully quickly grasp how things work.

If you find a problem, incorrect comment, obsolete or improper code or such, please search for an issue about it at https://github.com/backdrop-contrib/examples/issues If there isn't already an issue for it, please create a new one.

License

This project is GPL v2 software. See the LICENSE.txt file in this directory for complete text.

Maintainers

Credits

Drupal version currently maintained by:

You can’t perform that action at this time.