Hi Guys,

It would be really nice if there was a hook invoked in demo_reset() so other modules could do some other actions on reset, such as cleaning up the any uploaded files.

While I could simply use hook_cron() (which I will for the moment), having a hook_reset() would allow the actions to be triggered both on cron and on manual resets.

Cheers,
Deciphered.

Comments

sun’s picture

Status: Active » Fixed

This was already added:

function _demo_reset($filename, $verbose = TRUE) {
...
  module_invoke_all('demo_reset_before', $filename, $info, $fileconfig);
...
  if ($success) {
...
    // Allow other modules to act on successful resets.
    module_invoke_all('demo_reset', $filename, $info, $fileconfig);
  }
...
}

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.