Active
Project:
Content Construction Kit (CCK)
Version:
6.x-2.8
Component:
nodereference.module
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
23 Nov 2010 at 23:01 UTC
Updated:
29 Feb 2012 at 02:22 UTC
I have a content type generated by simplenews. I added an extra nodereference field, that is linked to a views, that outputs every 'active' node from the 'news' content type (by active I mean every news node has an expiry date, after which they are not active anymore). It works well, except...
How can I make each of these news to be selected to be sent with my newsletter by default? Most of the cases I'd like to attach all of these news, but still I would like to have the option to exclude news, so it would be nice if I had them selected already.
Thanks for the help, I hope I posted it to the right place.
Comments
Comment #1
citricguy commentedWere you able to accomplish this? I'm looking to do the same thing in d7.
Comment #2
citricguy commentedI'm sure there is a better way to do this, but I was able to select all fields by default by using a #after_build function.
added the following with hook_form_alter():
Here are the contents of the _check_everything function.
Quick and dirty, but it works. Will likely refactor and re post later.