'plugin_settings_post' - called when the Addon Settings pages are submitted.
$b is the $_POST array
+'profile_post' - called when posting a profile page.
+ $b is the $_POST array
+
+'profile_edit' - called prior to output of profile edit page
+ $b is array
+ 'profile' => profile (array) record from the database
+ 'entry' => the (string) HTML of the generated entry
+
'profile_advanced' - called when the HTML is generated for the 'Advanced profile',
corresponding to the 'Profile' tab within a person's profile page.
$b is the (string) HTML representation of the generated profile
$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]),
'$contact' => $r[0]['contact']
));
+ $arr = array('profile' => $r[0], 'entry' => $o);
+ call_hooks('profile_edit', $arr);
+
return $o;
}
else {