I need to open an entityform in a modal popup. I have got this working using 'Modal operations' and 'Modal forms' modules following this guide: http://julian.pustkuchen.com/en/comment/reply/599. My link looks like the following:
<a href="modal/entityform/job_application/nojs/0" class="ctools-use-modal ctools-modal-modal-popup-large btn"><?php print t('Apply') ?></a>
The problem now is that I need to pass certain data (e.g. the nid) of the currently viewed node into the entityform.
Is there another approach to this I could be using, or am I going down the right track?