« Downgrading from PHP 5.3 to 5.2 all for Drupal | Main | Code Snippet for pulling Node Reference and Multigroup information in Drupal 6 »

January 18, 2011

Recurring Updates to Drupal Modules

*Highjacking my own blog post*

Patch Drupal Core
Drupal 6 doesn't like empty, required radio buttons and this causes problems when using the Conditional Fields module. The patch here, allows the form validation to ignore required, hidden and empty radio-button fields. Patch at line 700. Referencing post is here.

Apply this patch (at least until the editor is finally patched) to avoid the addition of
tags into blank paragraphs

I've heavily customized this theme so any updates should be done very carefully. Unfortunately, I haven't thought about this much and don't know what the best approach to updating it will be. Right now, I just hope no updates come out.

When new versions of this module come out the print/lib/dompdf/ folder needs to be replaced. This library allows for pages to be printed as PDF.

There are two changes that need to be made to biblio files everytime the module is updated:

1. Change the appears of the export links:

"Tagged to Endnote"
line 922 954
function _build_biblio_tagged_link($base, $nid) {

"RTF to RichText"
line 912 943
function _build_biblio_rtf_link($base, $nid) {

2. Suppress pdf links:
- This is no longer necessary since I've switched to public/private structure using Private Download. See extended below for former instructions.

3) Go to admin/content/node-type/biblio/display and set the filefield to excluded on both counts

Note that this is a bit of a hack. Ideally we would be able to hide some files and show others because not everything is copyrighted...

Also, the file upload module (part of core) is something else to consider in this mess...

Finally, deep blue should not be forgotten.

2. Suppress pdf links:

I've added a cck filefield to the biblio content type so pdf's can be attached. Because most of these files are copyrighted I've decided to not allow them to be viewed by the general public.

Here's how to do this:

1) Open sites/all/modules/biblio/biblio_theme.inc and go to this function:

function theme_biblio_download_links($node = NULL){

2) Comment this line out:
return $files;
// return $files;

This step does not need to be repeated:

Posted by kkwaiser at January 18, 2011 04:42 PM


Login to leave a comment. Create a new account.