From 8050af67b3a7e279f8ecb8641861b004ad66f438 Mon Sep 17 00:00:00 2001 From: Steven Wittens Date: Wed, 18 Aug 2004 04:24:33 +0000 Subject: Setting the default workflow for attachments by upload.module to be enabled. This makes sense because people will expect attachments to work everywhere when they enable this module. This also matches comment.module's behaviour, where comments are allowed by default unless turned off. --- modules/upload/upload.module | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'modules/upload/upload.module') diff --git a/modules/upload/upload.module b/modules/upload/upload.module index 7260ccca1..a2d889855 100644 --- a/modules/upload/upload.module +++ b/modules/upload/upload.module @@ -83,10 +83,10 @@ function upload_file_download($file) { function upload_nodeapi(&$node, $op, $arg) { switch ($op) { case 'settings': - $output[t('attachments')] = form_checkbox(NULL, "upload_$node->type", 1, variable_get("upload_$node->type", 0)); + $output[t('attachments')] = form_checkbox(NULL, "upload_$node->type", 1, variable_get("upload_$node->type", 1)); break; case 'form param': - if (variable_get("upload_$node->type", 0)) { + if (variable_get("upload_$node->type", 1)) { $output['options'] = array('enctype' => 'multipart/form-data'); } break; @@ -166,12 +166,12 @@ function upload_nodeapi(&$node, $op, $arg) { } break; case 'form post': - if (variable_get("upload_$node->type", 0) == 1) { + if (variable_get("upload_$node->type", 1) == 1) { $output = upload_form($node); } break; case 'load': - if (variable_get("upload_$node->type", 0) == 1) { + if (variable_get("upload_$node->type", 1) == 1) { $output->files = upload_load($node); } break; -- cgit v1.2.3