aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--node_import_truncate.module12
1 files changed, 7 insertions, 5 deletions
diff --git a/node_import_truncate.module b/node_import_truncate.module
index ac75a71..38a12d1 100644
--- a/node_import_truncate.module
+++ b/node_import_truncate.module
@@ -27,7 +27,7 @@ function node_import_truncate_menu() {
/**
* Menu callback.
*/
-function node_import_truncate_page($taskid = null) {
+function node_import_truncate_page($taskid = NULL) {
$output = t('Choose whether to delete older content.');
$output .= drupal_get_form('node_import_truncate_form', $taskid);
return $output;
@@ -36,7 +36,7 @@ function node_import_truncate_page($taskid = null) {
/**
* Mass deletion form.
*/
-function node_import_truncate_form(&$form_state, $taskid = null) {
+function node_import_truncate_form(&$form_state, $taskid = NULL) {
$form['taskid'] = array(
'#type' => 'value',
'#value' => $taskid,
@@ -73,8 +73,9 @@ function node_import_truncate_form_submit($form, &$form_state) {
if (isset($form_state['values']['taskid'])) {
$taskid = $form_state['values']['taskid'];
$redirect = 'admin/content/node_import/' . $taskid;
- } else {
- $redirect = null;
+ }
+ else {
+ $redirect = NULL;
}
if ($mass_delete == 1) {
@@ -90,7 +91,8 @@ function node_import_truncate_form_submit($form, &$form_state) {
batch_set($batch);
batch_process($redirect);
- } else {
+ }
+ else {
drupal_goto($redirect);
}
}