Adding the registrations to a specific Node NID, instead of the Node Add Page?
siliconvalley1 - May 22, 2008 - 06:56
| Project: | Inline Registration |
| Version: | 5.x-1.x-dev |
| Component: | Code |
| Category: | feature request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Jump to:
Description
Hi, I'm excited that I found this module, it does exactly what I need except I would like to add the registration to a specific node (via NID) so this way it could be used to insert into views, panels, blocks, etc. I don't know how to code PHP but as far as I can tell you would just need to change the code:
function inline_registration_form_alter($form_id, &$form) {
if ($form['type']['#value'] . '_node_form' == $form_id && arg(1) == 'add') { // This is a node/add form
global $user;
if ($user->uid == 0) { // User is not logged inI would appreciate if anyone could help with this, maybe it could become a separate module or a feature in this one?

#1
you can enable inline_registration by content type (not specific node!) using my patch http://drupal.org/node/294369