Remove Remove Account link from account settings
because it doesn’t remove the account. Move channel removal link to channel page
This commit is contained in:
parent
628f121804
commit
eb41b0ba7c
@ -995,6 +995,8 @@ function settings_content(&$a) {
|
|||||||
'$lbl_misc' => t('Miscellaneous Settings'),
|
'$lbl_misc' => t('Miscellaneous Settings'),
|
||||||
'$menus' => $menu,
|
'$menus' => $menu,
|
||||||
'$menu_desc' => t('Personal menu to display in your channel pages'),
|
'$menu_desc' => t('Personal menu to display in your channel pages'),
|
||||||
|
'$removeme' => t('Remove this channel'),
|
||||||
|
'$permanent' => t('Warning: This action is permanent and cannot be reversed.'),
|
||||||
));
|
));
|
||||||
|
|
||||||
call_hooks('settings_form',$o);
|
call_hooks('settings_form',$o);
|
||||||
|
@ -135,6 +135,8 @@
|
|||||||
</div>
|
</div>
|
||||||
<div id="settings-channel-menu-end"></div>
|
<div id="settings-channel-menu-end"></div>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
|
<div id="settings-remove-account-link">
|
||||||
|
<button title="{{$permanent}}" class="btn btn-danger" type="submit" formaction="removeme">{{$removeme}}</button>
|
||||||
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
@ -2,9 +2,7 @@
|
|||||||
<h1>{{$title}}</h1>
|
<h1>{{$title}}</h1>
|
||||||
|
|
||||||
|
|
||||||
<div id="settings-remove-account-link">
|
|
||||||
<a href="removeme" title="{{$permanent}}" >{{$removeme}}</a>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
|
|
||||||
<form action="settings/account" id="settings-account-form" method="post" autocomplete="off" >
|
<form action="settings/account" id="settings-account-form" method="post" autocomplete="off" >
|
||||||
|
Reference in New Issue
Block a user