Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
This project is not covered by Drupal’s security advisory policy.
Module 'simple_report' is an API module which was designed to provide very quick and simple way to build report using data stored in database table(s). This could be useful to create simple reports and/or debug database table content.
Quick start
To get report you just need:
- Create menu item using hook_menu().
- Add menu callback. Eg.:
function <module_name>_report() { simple_report(['tables' => ['<table_name>']]); }
- Open created menu item in browser and you will see sortable and highly customizable table with data from
<table_name>
database table and only selected fields will be shown.
Other options
You could extend your report with this features:
- Automatically refresh page after given number of seconds. Disabled by default.
- Join other tables to get more data.
- Show/hide columns.
- Set custom table headers. By default header will be build using fields names from database schema.
- Custom formatter for each value in table.
- Set number of items per page.
- Use pager above or below table or both.
- Use filters to show not all rows from selected database table. For example, to show only data related to given user at user's profile page.
- Set custom page title.
More details and code examples in README.md.
Project information
- Module categories: Administration Tools, Developer Tools
- Created by VladSavitsky on , updated
- This project is not covered by the security advisory policy.
Use at your own risk! It may have publicly disclosed vulnerabilities.