Integrate update.module with actions.module

Created on 11 July 2007, about 17 years ago
Updated 2 August 2023, about 1 year ago

It'd be great if whenever update.module automatically discovered your site was missing some updates, that it triggered actions defined via the actions.module. After a few emails and IRC chats with John "Mr Action" VanDyk, it seems as though the best way to do this is to introduce a hook that update.module invokes when the site is out of date. Then, it's trivial to tell actions.module about this hook, and then site admins can assign actions to it via the actions UI.

We could even move the email notification code already hard coded in here into update.module's implementation of its own hook, for clarity that "this is code that should happen if the site is missing updates". I still support leaving the email notification setting and functionality in update.module, even if we have actions, since I think it's a very simple, obvious kind of notification and we should keep it as easy as possible for site admins to know if their site is out of date. Also, I can certainly imagine update_advanced.module β†’ wanting to do other things when this hook fires, so it's not *only* useful for actions integration...

The only alternative to a new hook for this would be a bunch of extra actions-specific code in update.module to manage and invoke the actions directly. There is no documentation about how to do this, and John's on vacation for a while, too. :(

So, if there are no objections, I'd like to move forward on a patch to introduce a hook ("hook_updates_available"?) that's fired by update_cron() when it finds the site out of date, move the email notification sending code into update.module's implementation of its own hook, and add the update_hook_info() implementation to tell actions about this new hook.

Dries/Gabor? If I write this, will it land for D6? ;) Any better suggestions for the name of the hook?

Thanks,
-Derek

p.s. Consider this in " Concept needs feedback β†’ " status... ;)

✨ Feature request
Status

Active

Version

11.0 πŸ”₯

Component
UpdateΒ  β†’

Last updated 2 days ago

  • Maintained by
  • πŸ‡ΊπŸ‡ΈUnited States @tedbow
  • πŸ‡ΊπŸ‡ΈUnited States @dww
Created by

πŸ‡ΊπŸ‡ΈUnited States dww

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024