aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio <silvio@devlet.com.br>2010-11-05 17:51:12 -0200
committerSilvio <silvio@devlet.com.br>2010-11-05 17:51:12 -0200
commitc6aebb1b7cdaed00c7ad515473c6b9b1304fae56 (patch)
treeb4e0e1fddd0965b987490209c06d9cf95b25b935
parent1765a1472c241386af656e3885a4b5ab0f4edbb7 (diff)
downloadnode_import_truncate-c6aebb1b7cdaed00c7ad515473c6b9b1304fae56.tar.gz
node_import_truncate-c6aebb1b7cdaed00c7ad515473c6b9b1304fae56.tar.bz2
Coding standardsHEADmaster
-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);
}
}