diff options
| author | Nigel Osborne <kiwi3685@me.com> | 2012-01-19 20:47:25 +0000 |
|---|---|---|
| committer | Nigel Osborne <kiwi3685@me.com> | 2012-01-19 20:47:25 +0000 |
| commit | ec3e47de14b99ec75c18dc3979e28dfe41c9eeaf (patch) | |
| tree | b4d85a08bae86a10e76920124fec89fda673fae8 /index_edit.php | |
| parent | 3c30cff09ff7bf2619c90aff3513ceb5062bf573 (diff) | |
| download | webtrees-ec3e47de14b99ec75c18dc3979e28dfe41c9eeaf.tar.gz webtrees-ec3e47de14b99ec75c18dc3979e28dfe41c9eeaf.tar.bz2 webtrees-ec3e47de14b99ec75c18dc3979e28dfe41c9eeaf.zip | |
Hide "Reset to defaults" option from Home page blocks editing window.
Diffstat (limited to 'index_edit.php')
| -rw-r--r-- | index_edit.php | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/index_edit.php b/index_edit.php index 83ac49790c..afa163294d 100644 --- a/index_edit.php +++ b/index_edit.php @@ -395,8 +395,10 @@ if ($action=="configure") { if (WT_USER_IS_ADMIN && $ctype=='user') { echo WT_I18N::translate('Use these blocks as the default block configuration for all users?'), '<input type="checkbox" name="setdefault" value="1"><br><br>'; }*/ - - echo '<input type="button" value="', WT_I18N::translate('Reset to Default Blocks'), '" onclick="window.location=\'index_edit.php?ctype=', $ctype, '&action=reset&name=', addslashes($name), '\';">'; + /* Access to this section temporarily removed from Home page as it does not work (kiwi - 20/01/2012)*/ + if ($ctype=='user') { + echo '<input type="button" value="', WT_I18N::translate('Reset to Default Blocks'), '" onclick="window.location=\'index_edit.php?ctype=', $ctype, '&action=reset&name=', addslashes($name), '\';">'; + } echo ' '; echo '<input type="button" value="', WT_I18N::translate('Save'), '" onclick="select_options(); save_form();">'; echo ' '; |
