How to override node-xxx-edit.tpl.php in drupal 6

Submitted by programmer on Fri, 12/05/2008 - 12:36.
::

Could not find a proper solution yet. But, the temporary one goes here:


function custom_nodeapi(&$node, $op, $a3 = null, $a4 = null) {
switch ($op) {
case 'load':
break;
case 'prepare':
if ( arg(2) == 'edit' ) {
$form = theme('article_edit', $node);
}
break;
}
}

 In template.php 
function theme_article_edit($form) {
return _phptemplate_callback('article_edit', array('user' => $user, 'form' => $form));
}

Post your Answer

  • Lines and paragraphs break automatically.
  • You can enable syntax highlighting of source code with the following tags: <code>, <blockcode>, <c>, <cpp>, <drupal5>, <drupal6>, <java>, <javascript>, <php>, <python>, <ruby>. Beside the tag style "<foo>" it is also possible to use "[foo]". PHP source code can also be enclosed in <?php ... ?> or <% ... %>.

More information about formatting options