Using Drupal 4.7 beta 2 and Flexinode for 4.7 (non CVS)

I have created a content type for MP3 file upload.

When I click on it in the Create Content part of my site, I get this PHP error:

Fatal error: Call to undefined function: form_file() in /home/.jemma/oliverse/technotrauma.com/modules/flexinode/field_mp3.inc on line 14

I've looked at the line in question, and it says:

$output .= form_file(t($field->label), $fieldname, 40, ($node->$fieldname ? t('"%filename" has been uploaded. If you upload another file, the current file will be replaced.', array('%filename' => $node->$fieldname->filename)) : '') .' '. t($field->description), $field->required);

What can be wrong? I may be too stupid to figure it out myself.

Comments

Bèr Kessels’s picture

Title: Fatal error: Call to undefined function: form_file() » update mp3 include to fAPI

it is not yet updated to our new form api

raveoli’s picture

Then what to do my man? Anything I can do to make it work?

Bèr Kessels’s picture

Yes. Update the include file to work with latest Drupal HEAD. Mainly that means rewriting all the form function to the new Fapi code.

More info can be found here http://drupal.org/node/22218 and here http://drupal.org/node/33338

then post a patch here.

Thanks