[support] How to set Default Values based on Selected Entity Reference

Steve Wickham steve at wickwoodonline.com
Fri Mar 29 13:42:04 UTC 2013


I don't know Anoop.  I haven't written a module for this, I'm trying to
figure out first if it can be done without a custom module.

If I do end up needing a custom module, I'll look into it.

Thanks,
Steve

On Fri, Mar 29, 2013 at 2:19 AM, Anoop John <anoop.john at zyxware.com> wrote:

> > Ride Reports have a lot of the same data fields as Ride Events, just
> these
> > are the actual values versus what was planned, so I would like to set the
> > default values for Ride Report Fields based on data taken from the
> > corresponding Ride Event.
>
> Can't this be done using a hook_node_prepare in your module?
> (
> http://api.drupal.org/api/drupal/modules%21node%21node.api.php/function/hook_node_prepare/7
> )
>
> Thanks
> Anoop
>
> |--
> | Zyxware Technologies
> | http://www.zyxware.com
> |--
> | Be the change you wish to see in the world, M. K. Gandhi
> |--
> --
> [ Drupal support list | http://lists.drupal.org/ ]
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.drupal.org/pipermail/support/attachments/20130329/ada51740/attachment.html 


More information about the support mailing list