summaryrefslogtreecommitdiff
path: root/modules/node
diff options
context:
space:
mode:
Diffstat (limited to 'modules/node')
-rw-r--r--modules/node/content_types.inc2
-rw-r--r--modules/node/node.module6
2 files changed, 4 insertions, 4 deletions
diff --git a/modules/node/content_types.inc b/modules/node/content_types.inc
index c2fb2fcec..d4999d637 100644
--- a/modules/node/content_types.inc
+++ b/modules/node/content_types.inc
@@ -378,7 +378,7 @@ function node_type_reset(&$type) {
/**
* Menu callback; delete a single content type.
*/
-function node_type_delete_confirm($type) {
+function node_type_delete_confirm(&$form_state, $type) {
$form['type'] = array('#type' => 'value', '#value' => $type->type);
$form['name'] = array('#type' => 'value', '#value' => $type->name);
diff --git a/modules/node/node.module b/modules/node/node.module
index 337aa42db..3caacba6c 100644
--- a/modules/node/node.module
+++ b/modules/node/node.module
@@ -1673,8 +1673,8 @@ function theme_node_admin_nodes($form) {
return $output;
}
-function node_multiple_delete_confirm() {
- $edit = $_POST;
+function node_multiple_delete_confirm(&$form_state) {
+ $edit = $form_state['post'];
$form['nodes'] = array('#prefix' => '<ul>', '#suffix' => '</ul>', '#tree' => TRUE);
// array_filter returns only elements with TRUE values
@@ -2359,7 +2359,7 @@ function node_form_submit($form, &$form_state) {
/**
* Menu callback -- ask for confirmation of node deletion
*/
-function node_delete_confirm($node) {
+function node_delete_confirm(&$form_state, $node) {
$form['nid'] = array('#type' => 'value', '#value' => $node->nid);
return confirm_form($form,