From c6aebb1b7cdaed00c7ad515473c6b9b1304fae56 Mon Sep 17 00:00:00 2001 From: Silvio Date: Fri, 5 Nov 2010 17:51:12 -0200 Subject: Coding standards --- node_import_truncate.module | 12 +++++++----- 1 file 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); } } -- cgit v1.2.3