diff options
-rw-r--r-- | node_truncate.module | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/node_truncate.module b/node_truncate.module index b5fe7e4..e03068c 100644 --- a/node_truncate.module +++ b/node_truncate.module @@ -72,8 +72,10 @@ function node_truncate_form_validate($form, $form_state) { */ function node_truncate_form_submit($form, &$form_state) { $operations = array(); + $types = array_filter($form_state['values']['node_types']); + variable_set('node_truncate_nodetypes', $types); - foreach(array_filter($form_state['values']['node_types']) as $type) { + foreach($types as $type) { $operations[] = array('node_truncate', array($type)); } |