mirror of
https://git.sekbaer.de/Friendica/friendica.git
synced 2025-06-16 20:05:14 +02:00
profile edit hooks
This commit is contained in:
parent
623ae24109
commit
aeb585fee1
3 changed files with 14 additions and 0 deletions
|
@ -3,6 +3,7 @@
|
|||
|
||||
function network_init(&$a) {
|
||||
if(! local_user()) {
|
||||
notice( t('Permission denied.') . EOL);
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
|
@ -10,6 +10,8 @@ function profiles_post(&$a) {
|
|||
|
||||
$namechanged = false;
|
||||
|
||||
call_hooks('profile_post', $_POST);
|
||||
|
||||
if(($a->argc > 1) && ($a->argv[1] !== "new") && intval($a->argv[1])) {
|
||||
$orig = q("SELECT * FROM `profile` WHERE `id` = %d AND `uid` = %d LIMIT 1",
|
||||
intval($a->argv[1]),
|
||||
|
@ -389,6 +391,9 @@ function profiles_content(&$a) {
|
|||
'$contact' => $r[0]['contact']
|
||||
));
|
||||
|
||||
$arr = array('profile' => $r[0], 'entry' => $o);
|
||||
call_hooks('profile_edit', $arr);
|
||||
|
||||
return $o;
|
||||
}
|
||||
else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue