Hello!
Is it possible to embed a submit form from a module, say blog within a block? Of course I could create the form fields and call drupal_get_form, but if the blog has taxonomy set or any other form_alters from other module, that wouldn't work.

Is it possible somehow to use the blogs existing form building code within the block?

Thanks for any insights into this.

Comments

drupalzack’s picture

anyone?

christefano’s picture

This should work. Wrap it in PHP tags and put in in a page or block. Be sure to replace "update" with the machine-readable name of your content type.

  if(!function_exists("node_object_prepare")) {
    include_once(drupal_get_path('module', 'node') . '/node.pages.inc');
  }
  print node_add('update');

Sorry it took so long for you to get a response to your question (I just came across your post).



Christefano  
Founder, CEO
Large Robot
954-247-4786
http://www.largerobot.com