Commit 4181940c authored by sun's avatar sun

#489666 by stella: Added hook invocation after successful reset.

parent e5e5724c
......@@ -6,6 +6,7 @@ Demo x.x-x.x, xxxx-xx-xx
Demo 5.x-1.x, xxxx-xx-xx
------------------------
#489666 by stella: Added hook invocation after successful reset.
by sun: Fixed coding-style.
#424524 by John Money, sun: Fixed site not reset on all cron runs.
#393186 by sun: Fixed fatal error: Only variables can be passed by reference.
......
......@@ -279,6 +279,9 @@ function demo_reset($filename = 'demo_site', $verbose = TRUE) {
fclose($fp);
if ($success) {
// Allow other modules to act on successful resets.
module_invoke_all('demo_reset');
$message = t('Successfully restored database from %filename.', array('%filename' => $fileconfig['sqlfile']));
}
else {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment