From 0147520e903789aba3802a306b9f6b14326b486f Mon Sep 17 00:00:00 2001 From: Friendika Date: Fri, 7 Jan 2011 03:15:52 -0800 Subject: add contact edit hooks --- mod/contacts.php | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'mod/contacts.php') diff --git a/mod/contacts.php b/mod/contacts.php index 92bce0a73..7236a200d 100644 --- a/mod/contacts.php +++ b/mod/contacts.php @@ -40,6 +40,8 @@ function contacts_post(&$a) { return; // NOTREACHED } + call_hooks('contact_edit_post', $_POST); + $profile_id = intval($_POST['profile-assign']); if($profile_id) { $r = q("SELECT `id` FROM `profile` WHERE `id` = %d AND `uid` = %d LIMIT 1", @@ -260,7 +262,11 @@ function contacts_content(&$a) { )); - return $o; + $arr = array('contact' => $r[0],'output' => $o); + + call_hooks('contact_edit', $arr); + + return $arr['output']; } @@ -350,6 +356,7 @@ function contacts_content(&$a) { '$url' => $url )); } + $o .= '
'; } -- cgit v1.2.3