I'm trying to write an external module that adds a new FieldField Source.
By implementing hook_filefield_sources_info() I was successful at getting my new source to appear in the "Enabled sources:" fieldset for the field instance.
However, I'm unable to add form inputs to the FileField Sources settings for my new source as filefield_sources_invoke_all('settings', $params) only loops through the available .inc files (ie: it doesn't do a module_invoke_all())
What is the recommended way for my module to add settings inputs for the new filefield source it provides? Simply hook_form_alter?
Comments
Comment #1
tamerzg commentedHave the same problem. I ended up using form_alter, here is the code:
Comment #2
quicksketchYep, that's right, just use plain-ol' hook_form_alter().
Comment #4
milplus commentedi need to hook up () g2image embedded to pick photos in gallery2 albums.
any idea how to do it?