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
| Comment | File | Size | Author |
|---|---|---|---|
| filefield_widget_settings.patch | 810 bytes | aaron |
Comments
Comment #1
jpetso commentedApplied 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 :)
Comment #2
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.