From 4b985473d8e4d26fc04fc244b401b61a822e834c Mon Sep 17 00:00:00 2001 From: Roland Gruber Date: Mon, 5 Nov 2007 18:15:26 +0000 Subject: [PATCH] added password changing tool --- lam/lib/types/user.inc | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/lam/lib/types/user.inc b/lam/lib/types/user.inc index f1909245..7434cdf2 100644 --- a/lam/lib/types/user.inc +++ b/lam/lib/types/user.inc @@ -240,6 +240,21 @@ class lamUserList extends lamList { echo "

\n"; } } + + /** + * Returns a list of lamListTool objects to display next to the edit/delete buttons. + * + * @return lamListTool[] tools + */ + protected function getAdditionalTools() { + if (!isLAMProVersion()) { + return array(); + } + else { + $passwordTool = new lamListTool(_('Change password'), 'key.png', 'changePassword.php'); + return array($passwordTool); + } + } }