Hi!
I have attached the feeds field to my Content type but the thing is that, in my case the feed URL should be optional.
Is this possible to set from admin?
If not, then what do I have to change in code to make the field optional?
This does not to do the trick since it still tries to validate the blank value.
// public function sourceForm($source_config) {
'#required' => FALSE,
Thanks,
Comments
Comment #1
mareks commentedGuess I can't really fool it and say that the blank field is valid coz' then it tries to fetch the data from that blank URL :)
So... what are my option?
Comment #2
ShawnNYC commentedI'm working on something related. My semi-solution was to add a field to the form function that gave a default value for the form's URL field.
Comment #3
technikh commentedI solved using http://drupal.org/node/1127696#comment-7236464
Comment #4
megachrizDuplicate of #856316: Add option to make source URL/file not required for importers attached to nodes.