Version 1.6 (checked in on 2010/10/14 at 20:26:00 by rfay)
This is an example outlining how a module can make use of the new DBTNG database API in Drupal 7.
@todo Demonstrate transaction usage.
General documentation is available at Database abstraction layer documentation @endlink and at @link http://drupal.org/node/310069.
| Name | 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_help | Implements hook_help(). |
| dbtng_example_list | Render a list of entries in the database. |
| dbtng_example_menu | Implements hook_menu(). |