Hello all,
I am developing my own custom module and i want to theme its posting form..But i did search lots for it but the
methods of theming forms are not working with drupal 6 .
I am having my own custome node type "projects" and i want to theme its posting form e.g. /node/add/projects
Itried following to achive it ..
template.php :

function phptemplate_node_form($form) {
switch ($form['#node']->type) {
case 'projects':
return _phptemplate_callback('node_projects-edit', array('form' => $form));
default:
return theme_node_form($form);
}
}

BUT ITS SAYING "Undefined function _phptemplate_callback(); I dodnt get any idea how to the form in drupal6 bcoz this function
was working well in drupal 5 ..

Please help me out ...

Thanks

Comments

add1sun’s picture

The entire theme system was redone in Drupal 6. phptemplate_callback doesn't exist anymore. You should read over the new D6 theme guide: http://drupal.org/theme-guide as well as the theme layer guide for module developers: http://drupal.org/node/165706.

Lullabot loves you

Drupalize.Me, The best Drupal training, available all the time, anywhere!

haojiang’s picture

i think your response is as worse as saying nothing
i've found some genius have start his solution : http://11heavens.com/theming-the-node-form-in-Drupal-6
and there's a project here : http://drupal.org/project/nodeform

pingvinen’s picture

Im having big trubbel in trying to edit the form page too. Therefore I request someone to make a easy tutorial on this matter.
None of the two mentioned here have helped me!