Quantcast
Channel: embed
Viewing all articles
Browse latest Browse all 3

Embed Drupal node form anywhere

$
0
0

Simple 1 line of code to embed a Drupal node form anywhere in your site although I would recommend doing it the Drupal way which is creating a custom module for this.

print drupal_render(node_add('NODE_TYPE'));

Where NODE_TYPE is your content type (machine name).

If the code above returns an error that says the function node_add() is undefined, add the following code before it.


Viewing all articles
Browse latest Browse all 3

Trending Articles