Theming node form

Events happening in the community are now at Drupal community events on www.drupal.org.
You are viewing a wiki page. You are welcome to join the group and then edit it. Be bold!

If you plan to have your own layout for form, you may do so by adding a template file based on your module name.
Example:

<?php
[modulename]_theme(...) {
return array(... ,
 
"[modulename]_node_form" => array(
 
"template" => "[modulename]-myform",
 
"arguments" => array("node" => NULL)
);
?>

Your file name will be [template] + ".tpl.php".
Example: [modulename]-myform.tpl.php

If no theme is declared by that name, "node_form" theme will be used instead.

Drupal Developer Groups in Malaysia

Group organizers

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds:

Hot content this week