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:

  1. Create menu item using hook_menu().
  2. Add menu callback. Eg.:
    function <module_name>_report() {
      simple_report(['tables' => ['<table_name>']]);
    }
    
  3. 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:

  1. Automatically refresh page after given number of seconds. Disabled by default.
  2. Join other tables to get more data.
  3. Show/hide columns.
  4. Set custom table headers. By default header will be build using fields names from database schema.
  5. Custom formatter for each value in table.
  6. Set number of items per page.
  7. Use pager above or below table or both.
  8. 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.
  9. Set custom page title.

More details and code examples in README.md.

Project information

Releases