On Thu, Jul 15, 2010 at 10:52, [email protected] <[email protected]> wrote:
> Which task i need to use. And how i can add new form field to login form ?
Task is 'login' and you can either use the 'template_object_loginform'
hook or the 'render_page' hook to extend/modify the HTML code of the
login page. Here's a little example:
class loginform extends rcube_plugin
{
public $task = 'login';
function init()
{
$this->add_hook('template_object_loginform', array($this, 'login_form'));
$this->add_hook('render_page', array($this, 'render_page'));
}
function login_form($args)
{
$args['content'] .= '<h4>Added to login form object</h4>';
return $args;
}
function render_page($args)
{
$rcmail = rcmail::get_instance();
$rcmail->output->add_footer('<h4>Added to page footer</h4>');
}
}
Alternatively you can modify the skin template to change the login screen.
~Thomas
_______________________________________________
List info: http://lists.roundcube.net/dev/