liquid_feedback_frontend
diff app/main/contact/_action/remove_member.lua @ 0:3bfb2fcf7ab9
Version alpha1
| author | bsw/jbe |
|---|---|
| date | Wed Nov 18 12:00:00 2009 +0100 (2009-11-18) |
| parents | |
| children | 768faea1096d |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/app/main/contact/_action/remove_member.lua Wed Nov 18 12:00:00 2009 +0100 1.3 @@ -0,0 +1,7 @@ 1.4 +local member = app.session.member 1.5 +local other_member = Member:by_id(param.get_id()) 1.6 + 1.7 +local contact = Contact:by_pk(member.id, other_member.id) 1.8 +contact:destroy() 1.9 + 1.10 +slot.put_into("notice", _"Member has been removed from your contacts")