? biblio_526740.patch Index: biblio.admin.inc =================================================================== RCS file: /cvs/drupal-contrib/contributions/modules/biblio/biblio.admin.inc,v retrieving revision 1.9.2.71 diff -u -p -r1.9.2.71 biblio.admin.inc --- biblio.admin.inc 4 Jun 2009 02:17:07 -0000 1.9.2.71 +++ biblio.admin.inc 21 Jul 2009 21:04:04 -0000 @@ -365,6 +365,21 @@ function biblio_admin_settings() { '#default_value' => variable_get('biblio_author_links', 1), '#description' => t('This creates a hyperlink on author names which, when clicked, will select entries which contain that author') ); + if (module_exists('upload') || module_exists('filefield')) { + $form['files'] = array( + '#type' => 'fieldset', + '#collapsible' => TRUE, + '#collapsed' => TRUE, + '#title' => t('Files') + ); + $form['files']['biblio_files_display'] = array( + '#type' => 'checkbox', + '#title' => t('Display files'), + '#return_value' => 1, + '#default_value' => variable_get('biblio_files_display', 1), + '#description' => t('This allows attached files to display in biblio results') + ); + } $form['openurl'] = array( '#type' => 'fieldset', '#collapsible' => TRUE, Index: biblio_theme.inc =================================================================== RCS file: /cvs/drupal-contrib/contributions/modules/biblio/biblio_theme.inc,v retrieving revision 1.8.2.81 diff -u -p -r1.8.2.81 biblio_theme.inc --- biblio_theme.inc 11 Jun 2009 12:42:08 -0000 1.8.2.81 +++ biblio_theme.inc 21 Jul 2009 21:04:06 -0000 @@ -803,7 +803,7 @@ function theme_biblio_admin_types_edit_f function theme_biblio_download_links($node = NULL) { $files = ''; - if (!empty ($node->files) && count($node->files) > 0 && user_access('view uploaded files')) { + if (variable_get('biblio_files_display', 1) && !empty ($node->files) && count($node->files) > 0 && user_access('view uploaded files')) { $files .= ''; $files .= ' '. t('Download') .': '; $file_count = 0; @@ -817,7 +817,7 @@ function theme_biblio_download_links($no } $files .= ''; } - if (module_exists('filefield')) { // now lets get any CCK FileField files... + if (variable_get('biblio_files_display', 1) && module_exists('filefield')) { // now lets get any CCK FileField files... $fields = filefield_get_field_list('biblio'); foreach ($fields as $field_name => $field) { if (filefield_view_access($field_name)) {