Does anybody know what is the simplest way of displaying a node edit form on a javascript tab?

At the momend I have a couple of nodes on the tabs. I have the main node displayed on the first tab. Then I have a couple of other related nodes displayed on the other tabs. I want to have another tab to display the node edit form of the main node. How would you go about this?

Comments

nedjo’s picture

Some quick suggestions.

Test if the user has appropriate access:


if (node_access('edit', $node)) {

}

If so, add a tab with the following content:


drupal_get_form($node->type .'_node_form', $node);

nedjo’s picture

Priority: Critical » Normal
Status: Active » Closed (fixed)

No response, closing.