From 6b054dcd2708aba2d6f19c83d3ed0e1dd6cc9666 Mon Sep 17 00:00:00 2001 From: Tobias Diekershoff Date: Fri, 21 Apr 2017 08:47:33 +0200 Subject: [PATCH] open/close config block for superblock addon --- superblock/superblock.php | 33 +++++++++++++++++++-------------- 1 file changed, 19 insertions(+), 14 deletions(-) diff --git a/superblock/superblock.php b/superblock/superblock.php index 1462c184..c86c6aad 100755 --- a/superblock/superblock.php +++ b/superblock/superblock.php @@ -6,7 +6,7 @@ * Description: block people * Version: 1.0 * Author: Mike Macgirvin - * + * */ function superblock_install() { @@ -36,29 +36,34 @@ function superblock_uninstall() { function superblock_addon_settings(&$a,&$s) { - if(! local_user()) + if(! local_user()) { return; + } - /* Add our stylesheet to the page so we can make our settings look nice */ - - $a->page['htmlhead'] .= '' . "\r\n"; + /* Add our stylesheet to the page so we can make our settings look nice */ + $a->page['htmlhead'] .= '' . "\r\n"; $words = get_pconfig(local_user(),'system','blocked'); - if(! $words) + if(! $words) { $words = ''; + } - $s .= '
'; - $s .= '

' . t('"Superblock" Settings') . '

'; - $s .= '
'; - $s .= ''; - $s .= ''; - $s .= '
'; + $s .= ''; + $s .= '

' . t('"Superblock"') . '

'; + $s .= '
'; + $s .= ''; + $s .= '
'; return; - } function superblock_addon_settings_post(&$a,&$b) { -- 2.39.5