aboutsummaryrefslogtreecommitdiffstats
path: root/mod/contacts.php
diff options
context:
space:
mode:
authorFriendika <info@friendika.com>2011-01-07 03:15:52 -0800
committerFriendika <info@friendika.com>2011-01-07 03:15:52 -0800
commit0147520e903789aba3802a306b9f6b14326b486f (patch)
tree9ba1d7cb09d4dd2ba3586147af8b9062413d5019 /mod/contacts.php
parent65989470495ef1f45387bdec9779cf644f9a028c (diff)
downloadvolse-hubzilla-0147520e903789aba3802a306b9f6b14326b486f.tar.gz
volse-hubzilla-0147520e903789aba3802a306b9f6b14326b486f.tar.bz2
volse-hubzilla-0147520e903789aba3802a306b9f6b14326b486f.zip
add contact edit hooks
Diffstat (limited to 'mod/contacts.php')
-rw-r--r--mod/contacts.php9
1 files changed, 8 insertions, 1 deletions
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 .= '<div id="contact-edit-end"></div>';
}