From d8969bb84b7a710bf77f23de0d392a192dfc8f53 Mon Sep 17 00:00:00 2001 From: Friendika Date: Wed, 22 Dec 2010 20:23:41 -0800 Subject: add more plugin hooks, etc. --- boot.php | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) (limited to 'boot.php') 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 .= '
' . t('View Contacts') . '
'; } + + 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; }} -- cgit v1.2.3