Thanks for a great module!

One thing which I think could be done much better is the Stats Pro optional requirements on the following page (and in attachment):
http://example.com/admin/settings/statspro

As a user, this is completely different from the way all other modules do dependencies which are usually done on the modules page:
http://example.com/admin/build/modules

It was a real hassle to try and figure out exactly what I needed to install/enable, since all that dependency stuff is normally handled on the module page.

I understand that these things are not all required, but I think the correct way to do it is to have the Stats Pro module define a number of optional parts on the module page, just like for example Panels has multiple sections, with the corresponding dependencies defined there, e.g. on the module page under a "Statistics Pro" group:

  • Statistics Pro Core
  • Statistics Pro Open Flash Charts 2. Depends on: Statistics Pro Core (enabled), Open Flash Charts 2 (enabled).
  • Statistics Pro amCharts. Depends on: Statistics Pro Core (enabled), amCharts (disabled).

then of course elsewhere on the module page, the dependencies in the other direction would be automatically shown, e.g.:

  • Open Flash Charts 2 (enabled). Required by: Statistics Pro Open Flash Charts 2 (enabled).

I'm not sure of the exact dependency tree, but, for example, it looks like if I want to display charts using amCharts, I guess I need to enable certain things for that.

This would all make for a much more automatic and user-friendly experience for users trying to install the optional things.

Thanks!

CommentFileSizeAuthor
statspro_optional_requirements.png26.28 KBdrupalshrek

Comments

rsevero’s picture

Assigned: Unassigned » rsevero
Status: Active » Closed (works as designed)

It would be really complicated to move these optional features to submodules.

Unfortunately Drupal has no other method of handling optional dependencies, besides the one you mentioned, AFAIK.

Closing as "works as designed".

Please reopen in case there is a patch or some new idea on how to do it.