aboutsummaryrefslogtreecommitdiff
path: root/node_truncate.module
diff options
context:
space:
mode:
Diffstat (limited to 'node_truncate.module')
-rw-r--r--node_truncate.module4
1 files changed, 2 insertions, 2 deletions
diff --git a/node_truncate.module b/node_truncate.module
index e03068c..ec9a9cd 100644
--- a/node_truncate.module
+++ b/node_truncate.module
@@ -46,7 +46,7 @@ function node_truncate_form(&$form_state) {
'#type' => 'checkboxes',
'#title' => t('Node types'),
'#options' => $node_codes,
- '#default_value' => variable_get('node_truncate_nodetypes', array()),
+ '#default_value' => variable_get('node_truncate_node_types', array()),
'#description' => t('Select nodetypes which should be truncated.'),
);
@@ -73,7 +73,7 @@ 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);
+ variable_set('node_truncate_node_types', $types);
foreach($types as $type) {
$operations[] = array('node_truncate', array($type));