From 787db1f7d657ce44cf2958204a4a160439b06e5b Mon Sep 17 00:00:00 2001 From: maase2 Date: Tue, 5 Nov 2013 22:06:23 +0100 Subject: [PATCH] Update Contact.php Add the delete option for a contact. --- include/Contact.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/Contact.php b/include/Contact.php index 04d3fa9e5d..ce1edbcc21 100644 --- a/include/Contact.php +++ b/include/Contact.php @@ -197,6 +197,7 @@ function contact_photo_menu($contact) { $status_link=""; $photos_link=""; $posts_link=""; + $contact_drop_link = ""; $poke_link=""; $sparkle = false; @@ -214,6 +215,7 @@ function contact_photo_menu($contact) { $status_link = $profile_link . "?url=status"; $photos_link = $profile_link . "?url=photos"; $profile_link = $profile_link . "?url=profile"; + $contact_drop_link = $a->get_baseurl() . '/contacts/' . $contact['id'] . '/drop'; $pm_url = $a->get_baseurl() . '/message/new/' . $contact['id']; } @@ -228,6 +230,7 @@ function contact_photo_menu($contact) { 'photos' => array(t("View Photos"), $photos_link), 'network' => array(t("Network Posts"), $posts_link), 'edit' => array(t("Edit Contact"), $contact_url), + 'drop' => array(t("Drop Contact"), $contact_drop_link), 'pm' => array(t("Send PM"), $pm_url), ); -- 2.39.5