]> git.mxchange.org Git - friendica.git/blobdiff - boot.php
profile_tabs hook
[friendica.git] / boot.php
index 76c0057bddde19b2efc253bbe4ad7346e396e593..3dcb32dfa7a04d3b5c69d831b22cdc9cbdae7862 100755 (executable)
--- a/boot.php
+++ b/boot.php
@@ -1381,6 +1381,11 @@ function profile_tabs($a, $is_owner=False, $nickname=Null){
                );
        }
 
+
+       $arr = array('is_owner' => $is_owner, 'nickname' => $nickname, 'tab' => (($tab) ? $tab : false), 'tabs' => $tabs);
+       call_hooks('profile_tabs', $arr);
+       
        $tpl = get_markup_template('common_tabs.tpl');
-       return replace_macros($tpl,array('$tabs'=>$tabs));
+
+       return replace_macros($tpl,array('$tabs' => $arr['tabs']));
 }}