Posted by JacobSingh on March 19, 2009 at 7:05am
Jump to:
| Project: | Enabled Modules |
| Version: | 7.x-1.x-dev |
| Component: | User interface |
| Category: | feature request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Issue Summary
I'm going to implement a 1st rev for d6 which will list all newly enabled modules (after enabled_modules is installed).
The block will look something like this:
Unconfigured Modules:
---------------
x ImageCache
- Configure
- Mark as Configured
x Organic Groups
- Configure
- Mark as Configured
x Whatever
- Configure
- Mark as Configured
When a user clicks on configure, we'll take them to the first item from system_get_module_admin_tasks. Once they submit the form on this page, we'll remove that module from the list.
How does that sound?
Comments
#1
Congratulations on nominating yourself new co-maintainer of Enabled Modules! If you can add our own submit handler to the first page identified as an admin task for each module – 'cause sadly it is a menu link, not a form, that we'll know about – that'd be very slick!
(I'm happy to review and commit patches, also, but I don't want to be a bottleneck or for you to fear being left out in the cold.)
#2
Looks like this hasn't made it in yet.
I suggest the best way forward would be to define a table which stores the installation date of each module, triggered from one of the hooks. This can then be linked via views and the whole magic of views will be there.
The configured / hide flag can simply be a delete from that table - that way it would automatically put it back if you reinstall. Alternatively, it could be a flag to say configured, in which case it would never bother you again. Thoughts on that?
#3
There is a new hook in D7 (http://api.drupal.org/api/function/hook_modules_installed/7) which should be perfect for at least detecting a new module, even if enabled_modules has to deal with the timestamp.
Therefore, postponing this issue until there is a D7 release of some sorts to move it to.
#4
Active for D7.
#5
AgentRickard points out that the hook we actually want is http://api.drupal.org/api/function/hook_modules_enabled/7