Okay, I have widget settings working now for the new Audio Filefield module. However, it requires a new hook_filefield_widget_settings. This patch provides for that.

It invokes the hook for $op/form and $op/save, allowing me to add stuff to the form, and ensure they're saved.

Thanks,
Aaron Winborn

CommentFileSizeAuthor
filefield_widget_settings.patch810 bytesaaron
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

jpetso’s picture

Status: Needs review » Fixed

Applied in commit 117904 with a slight modifications - the hook should also be invoked for $op being 'validate', and $op='form' doesn't quite hit the nail on the head - in this form, it's $op='form_alter' seems like a better fit to me. Also, there is no $form_values in filefield_widget_settings(), so it doesn't make sense to pass that variable.

You might still find it useful :)

Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.