From 5aa95a9c5b702820487f57c3f13c3400d3469a28 Mon Sep 17 00:00:00 2001 From: Silvio Date: Fri, 8 Oct 2010 16:50:05 -0300 Subject: Saving form settings --- node_truncate.module | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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)); } -- cgit v1.2.3