aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio <s1lv10@uol.com.br>2010-09-13 18:33:55 -0300
committerSilvio <s1lv10@uol.com.br>2010-09-13 18:33:55 -0300
commit50d19224d34e2d1da0dae3093bcdd21f1d71aff2 (patch)
tree1915d60bf9cd42e7267e59917fc59378fba148c3
parent8bec1692ab1097e329f0e0e02b35905ded7b47a6 (diff)
downloadnode_truncate-50d19224d34e2d1da0dae3093bcdd21f1d71aff2.tar.gz
node_truncate-50d19224d34e2d1da0dae3093bcdd21f1d71aff2.tar.bz2
Fixing taskid
-rw-r--r--node_import_truncate.module5
1 files changed, 2 insertions, 3 deletions
diff --git a/node_import_truncate.module b/node_import_truncate.module
index a7a131d..9a88fb1 100644
--- a/node_import_truncate.module
+++ b/node_import_truncate.module
@@ -70,15 +70,14 @@ function node_import_truncate_form_submit($form, &$form_state) {
$mass_delete = $form_state['values']['mass_delete'];
variable_set('node_import_truncate', $mass_delete);
- if (isset($form_state['values']['taskid']['#value'])) {
- $taskid = $form_state['values']['taskid']['#value'];
+ if (isset($form_state['values']['taskid'])) {
+ $taskid = $form_state['values']['taskid'];
$redirect = 'admin/content/node_import/' . $taskid;
} else {
$redirect = null;
}
if ($mass_delete == 1) {
-
$task = node_import_load($taskid);
$type = ereg_replace('.*:', '', $task['type']);
$batch = array(