This is an example outlining how a module can make use of the DBTNG database API in Backdrop.

@todo Demonstrate transaction usage.

General documentation is available at Database abstraction layer documentation and at http://DOCUMENTATION_PENDING.

File

modules/examples/dbtng_example/dbtng_example.module

Functions

Namesort descending Description
dbtng_example_advanced_list Render a filtered list of entries in the database.
dbtng_example_entry_delete Delete an entry from the database.
dbtng_example_entry_insert Save an entry in the database.
dbtng_example_entry_load Read from the database using a filter array.
dbtng_example_entry_update Update an entry in the database.
dbtng_example_form_add Prepare a simple form to add an entry, with all the interesting fields.
dbtng_example_form_add_submit Submit handler for 'add entry' form.
dbtng_example_form_update Sample UI to update a record.
dbtng_example_form_update_callback AJAX callback handler for the pid select.
dbtng_example_form_update_submit Submit handler for 'update entry' form.
dbtng_example_list Render a list of entries in the database.
dbtng_example_menu Implements hook_menu().