summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSteven Wittens <steven@10.no-reply.drupal.org>2004-08-18 04:24:33 +0000
committerSteven Wittens <steven@10.no-reply.drupal.org>2004-08-18 04:24:33 +0000
commit8050af67b3a7e279f8ecb8641861b004ad66f438 (patch)
tree61c0048eb759629b3e20fbf188183c635b16d347
parent3bc3eb62469d07ef4848295bee9176c8d01e5aa5 (diff)
downloadbrdo-8050af67b3a7e279f8ecb8641861b004ad66f438.tar.gz
brdo-8050af67b3a7e279f8ecb8641861b004ad66f438.tar.bz2
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.
-rw-r--r--modules/upload.module8
-rw-r--r--modules/upload/upload.module8
2 files changed, 8 insertions, 8 deletions
diff --git a/modules/upload.module b/modules/upload.module
index 7260ccca1..a2d889855 100644
--- a/modules/upload.module
+++ b/modules/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;
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;