Greetings -
Using 0.3RC1, BTW. logout_after plugin API docs say:
QuoteAfter the user is logged out and the session is killed, this hook is triggered.
The arguments still contain some user info which is not available in $_SESSION anymore. It's also possible to redirect to some other URL in this hook because it's the last action in the logout process.
Arguments:
* host
* user
* language
Return values:
none.
Great, would really like to do that whole URL redirect thing, but how? Here are the relevant sections of my plugin code:
class myplugin extends rcube_plugin
{
function init()
{
$this->add_hook('logout_after', array($this, 'logout_after'));
}
function logout_after($args)
{
header( "Location: http://www.someurl.com" );
return $args;
}
}
Clicking 'Logout' results in 'standard' behavior, eg. no redirect ...
logout_after was added after RC1. You need to use SVN.
Quote from: corbosman;20852logout_after was added after RC1. You need to use SVN.
Aha! Thanks - any database changes or can I overwrite my 0.3RC1 installation with the contents of the SVN?