From 370302171330854b9e25556779abcaf965e4e15c Mon Sep 17 00:00:00 2001
From: alecpl <alec@alec.pl>
Date: Fri, 07 Oct 2011 06:25:23 -0400
Subject: [PATCH] - Plugin API: added 'ready' hook (#1488073)
---
index.php | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/index.php b/index.php
index 6eee0be..a1eb545 100644
--- a/index.php
+++ b/index.php
@@ -214,6 +214,12 @@
}
}
+// we're ready, user is authenticated and the request is safe
+$plugin = $RCMAIL->plugins->exec_hook('ready', array('task' => $RCMAIL->task, 'action' => $RCMAIL->action));
+$RCMAIL->set_task($plugin['task']);
+$RCMAIL->action = $plugin['action'];
+
+
// handle special actions
if ($RCMAIL->action == 'keep-alive') {
$OUTPUT->reset();
--
Gitblit v1.9.1