Permalink
Browse files

make delete nodes posible with panels form override. fixed: #683

git-svn-id: file:///home/frans/tmp/svn-to-git/nabuur-svn/trunk@664 735dea64-16db-426a-a501-683fc2a7293f
  • Loading branch information...
1 parent 4115702 commit c8b55e0877a32fe51fb918876f1a831fef23eb33 frans committed Aug 24, 2009
Showing with 1 addition and 1 deletion.
  1. +1 −1 sites/all/modules/panels/contexts/node_edit_form.inc
@@ -40,7 +40,7 @@ function panels_context_create_node_edit_form($empty, $node = NULL, $conf = FALS
if (!empty($node) && node_access('update', $node)) {
// This is from node_edit_page cause Drupal still doesn't use fapi right.
- if ($_POST['op'] == t('Delete')) {
+ if ($_POST['op'] == t('Delete') && !isset($_POST['confirm'])) {
// Note: we redirect from node/nid/edit to node/nid/delete to make the tabs disappear.
if ($_REQUEST['destination']) {
$destination = drupal_get_destination();

0 comments on commit c8b55e0

Please sign in to comment.