diff options
author | Dries Buytaert <dries@buytaert.net> | 2005-11-27 11:11:46 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2005-11-27 11:11:46 +0000 |
commit | c647b39c2c67c09ac421e43fedd4cdfa1a29b984 (patch) | |
tree | 0f8dd7ae69fa91b443bf6ec883f498024ef3c15a /modules/upload | |
parent | 247e012c358a1acbbaa28bb850292ea8935886fb (diff) | |
download | brdo-c647b39c2c67c09ac421e43fedd4cdfa1a29b984.tar.gz brdo-c647b39c2c67c09ac421e43fedd4cdfa1a29b984.tar.bz2 |
- Patch #37798 by Neil: fixed problem with node settings.
Diffstat (limited to 'modules/upload')
-rw-r--r-- | modules/upload/upload.module | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/upload/upload.module b/modules/upload/upload.module index 50a4c0861..195e9d677 100644 --- a/modules/upload/upload.module +++ b/modules/upload/upload.module @@ -144,9 +144,9 @@ function upload_file_download($file) { } function upload_form_alter($form_id, &$form) { - if (substr($form_id, -14) == '_node_settings') { - $form['workflow']['upload_'. $node->type] = array( - '#type' => 'radios', '#title' => t('Attachments'), '#default_value' => variable_get('upload_'. $node->type, 1), + if (isset($form['type']) && $form['type']['#value'] .'_node_settings' == $form_id) { + $form['workflow']['upload_'. $form['type']['#value']] = array( + '#type' => 'radios', '#title' => t('Attachments'), '#default_value' => variable_get('upload_'. $form['type']['#value'], 1), '#options' => array(t('Disabled'), t('Enabled')), ); } |