aboutsummaryrefslogtreecommitdiffstats
path: root/boot.php
diff options
context:
space:
mode:
authorFriendika <info@friendika.com>2010-12-22 20:23:41 -0800
committerFriendika <info@friendika.com>2010-12-22 20:23:41 -0800
commitd8969bb84b7a710bf77f23de0d392a192dfc8f53 (patch)
tree1bf8cc90900dcf52f66b7c09a453acb5133a9b6a /boot.php
parente287014b98a4688fa2051fb03e8e9032b380dcb8 (diff)
downloadvolse-hubzilla-d8969bb84b7a710bf77f23de0d392a192dfc8f53.tar.gz
volse-hubzilla-d8969bb84b7a710bf77f23de0d392a192dfc8f53.tar.bz2
volse-hubzilla-d8969bb84b7a710bf77f23de0d392a192dfc8f53.zip
add more plugin hooks, etc.
Diffstat (limited to 'boot.php')
-rw-r--r--boot.php21
1 files changed, 21 insertions, 0 deletions
diff --git a/boot.php b/boot.php
index 7e630eba8..3a6886fd1 100644
--- a/boot.php
+++ b/boot.php
@@ -1118,6 +1118,23 @@ function set_config($family,$key,$value) {
}}
+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) {
@@ -1759,6 +1776,8 @@ function contact_block() {
$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;
}}
@@ -2018,6 +2037,8 @@ function profile_sidebar($profile) {
'$homepage' => $homepage
));
+ call_hooks('profile_sidebar', $o);
+
return $o;
}}