The base commerce order report is always provided even when it is not being used as a report, except as a base class. With tens of thousands of reports, this adds unnecessary work and time.
The attached patch provides an alter hook to allow sites to remove `commerce_order_report` from the list of report types.
| Comment | File | Size | Author |
|---|---|---|---|
| #5 | add_report_types_alter_hook-#4.patch | 1.66 KB | rthornton |
| #3 | add_report_types_alter_hook-#3.patch | 1.66 KB | rthornton |
| add_report_types_alter_hook-#1.patch | 1.68 KB | rthornton |
Comments
Comment #2
travis-bradbury commentedThe function in the api.php file should be named
hook_commerce_order_reports_report_types_alter.That could be "A list of commerce order report types" with an "@see hook_commerce_order_reports_report_types()" after. I think d.o's documentation generator would prefer style that since it'd like to the @see stuff.
Comment #3
rthornton commentedUpdated for correct hook name and @see reference.
Comment #4
rthornton commentedComment #5
rthornton commentedComment #6
travis-bradbury commentedComment #8
travis-bradbury commented