}}
+if(! function_exists('load_pconfig')) {
+function load_pconfig($uid,$family) {
+ global $a;
+ $r = q("SELECT * FROM `pconfig` WHERE `cat` = '%s' AND `uid` = %d",
+ dbesc($family),
+ intval($uid)
+ );
+ if(count($r)) {
+ foreach($r as $rr) {
+ $k = $rr['k'];
+ $a->config[$uid][$family][$k] = $rr['v'];
+ }
+ }
+}}
+
+
+
if(! function_exists('get_pconfig')) {
function get_pconfig($uid,$family, $key, $instore = false) {
$o .= '<div id="viewcontacts"><a id="viewcontacts-link" href="viewcontacts/' . $a->profile['nickname'] . '">' . t('View Contacts') . '</a></div>';
}
+
+ call_hooks('contact_block_end', $o);
return $o;
}}
'$homepage' => $homepage
));
+ call_hooks('profile_sidebar', $o);
+
return $o;
}}
require_once("view/$profile_lang/profile_advanced.php");
else
require_once('view/profile_advanced.php');
+
+ call_hooks('profile_advanced',$o);
+
return $o;
}
notice( t('Permission denied.') . EOL);
return;
}
+
+ call_hooks('settings_post', $_POST);
+
if(count($a->user) && x($a->user,'uid') && $a->user['uid'] != local_user()) {
notice( t('Permission denied.') . EOL);
return;
'$pagetype' => $pagetype
));
+ call_hooks('settings_page',$o);
+
return $o;
-}}
\ No newline at end of file
+}}
+