How to embed a form element in a Views view
This is how you can embed forms in to a Views view in Drupal 6 with the module Views Embed Form.
//Create a hook_views_embed_form
//Needs to be [your module name] + '_views_embed_form' but can exists in a inc file
function mymodule_views_embed_form() {
//Set a user permission if needed
if (user_access('administer workflow state')) {
return array(
'mymodule_embedded_ticket_form' => t('My form name'),
);
}else{
return array(); //I added this to avoid error message if user has no access to the form
}
}
//Create a form, remember