Have you considered working with the Views maintainers to possibly add the Views Embed Form functionality into Views, maybe as a sub-module like Views UI. I think this is a great project and it would benefit you and everyone to try and add some life to it through Views since Views is a bigger project. Give it a thought and see if you can work it out with them.

See this Views issue here: http://drupal.org/node/886512

P.S. By the way, I keep getting permission issues "You don't have permissions to access..." I realize the documentation addresses this in one of the lines, but I've removed the user_access line entirely to make it open to all and it still gives the same error.

Comments

meba’s picture

I don't think merlin will want to integrate this but it's up to him.

Permissions - could you show me part of the code?

vermo’s picture

It's a great project as I said. My comment was because the last commit time was a while ago and it wasn't clear if the project was still being maintained or will be ready for Views3 and D7.

Re the permissions issue I was having, I have no idea what solved it. I cleared the cache, deleted the VEF field, re-added it, and it started working. It was initially giving me permissions error. The View itself that includes the VEF has special permissions on it, but the VEF field is part of the view so I wasn't (and still isn't) setting specific permissions for the VEF separately since it only comes with the View itself. Anyway it's all working nicely now. Thanks for a great module.

It looks like it's working just fine with Views2/D6. I'm planning to try it out with Views2/D7 and Views3 (D6 and D7) and will report whatever I find.

One last thing, in the form_name_submit ($form, &$form_state), I can get the nid of each row in the view
$form_state['values']['nid'])

but how do I get the nid of the node the View is showing on? I tried passing and reading $node in the form_name and form_name_submit functions but that's giving a compile error.

meba’s picture

Status: Active » Closed (works as designed)

Vermo,

this is a bunch of different issues :-)

"but how do I get the nid of the node the View is on?"

Views normally don't have any NID, views are usually URLs or blocks by themselves. If you embedded the view in a node, try arg(1)