After updating my website, a seemingly random message began popping up after cache clears and cron runs.
# activity features are being excluded because some needed modules are not enabled.
At first I had no idea what it was and no context to try to identify it in. Greps failed because of use of the t() function. Better user interface would have saved some time.
| Comment | File | Size | Author |
|---|---|---|---|
| #16 | remove_nag_message_add_requirements-678664-17.patch | 2.62 KB | jenlampton |
| #15 | remove_nag_add_requirement-678664-15.patch | 6.74 KB | jenlampton |
| #6 | 678664-missing_features-6.x-1.1.patch | 2.4 KB | ckng |
| #1 | total_control-678664.patch | 864 bytes | jonskulski |
Comments
Comment #1
jonskulski commentedHere is a very tiny patch. We should talk tomorrow or monday on a better way to approach this maybe :)
Comment #3
kosmikko commentedI think this nagging should be moved somewhere else, now it's displayed too often. For example when saving the modules page.
Comment #4
merlinofchaos commentedAlso, this nagging is displayed to non administrative users, which is totally wrong.
I would suggest, if you really want to display something, put a REQUIREMENTS_WARNING in hook_requirements so that it will show up on the status page.
Comment #5
merlinofchaos commentedOh and in the current download, the parentheses on the t() are wrong which causes a general warning.
Comment #6
ckngAttached patch moves the message to total_control_admin_settings(), which only user with permission 'administer total control' can access.
Perhaps could use markup instead of set message also.
Comment #7
jonskulski commentedI like using 'administer total control' to control who can view this message. ITs a good approach.
Feedback on the patch:
Comment #8
jenlamptonI took the nag out of the dev version. I'm working on adding module-related features more gracefully in the 2.x branch.
Will add the nag back in here if this patch gets rewritten :)
Comment #9
lipcpro commentedI downloaded the dev version and I'm still getting the message
Comment #10
jenlamptonOk, I now actually committed the nag-less version.
Sorry about that. :/
Comment #11
drupalninja99 commentedI still see this in 1.2, I ended up just enabling the statistics module so I wouldnt have to see it anymore
Comment #12
clkeenan commentedI hate to sound completely clueless, but what do I need to do to fix this problem? As in, why is this message appearing?
Comment #13
shotokai commented@CLKeenen
You can either apply the patch in #6 above, or switch over to the dev version of the module.
Comment #14
gr33nman commentedThis nag feature would be more useful if it had a link that takes you to a report that shows you what modules need to be enabled - or disabled - to remove the nag screen.
Comment #15
jenlamptonAlright, I've removed the nag and add a requirements check that just suggests other features might be hidden without these modules.
Comment #16
jenlamptonrerolled against latest dev. removed dpm. :)
Comment #17
jenlamptonthis fix is committed to -dev and will be included in the next release.