aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio <silvio@devlet.com.br>2010-10-08 16:50:05 -0300
committerSilvio <silvio@devlet.com.br>2010-10-08 16:50:05 -0300
commit5aa95a9c5b702820487f57c3f13c3400d3469a28 (patch)
treef3d3207ab7d602cb355e78ff3629b3aeb6f72846
parentd005ff67b39bcfddd982a61a97311b969a287650 (diff)
downloadnode_truncate-5aa95a9c5b702820487f57c3f13c3400d3469a28.tar.gz
node_truncate-5aa95a9c5b702820487f57c3f13c3400d3469a28.tar.bz2
Saving form settings
-rw-r--r--node_truncate.module4
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));
}