This module is exactly what I was looking for -- thanks!

Is it possible to override the block output? I've customized my node input form following the method described here, and would like to display that customized form instead of the default.

Comments

jesss’s picture

Answering my own post, I've figured out one way to do this, but I'm sure there must be a more elegant solution.

I created a custom PHP block which I included on my page above the form block. Here's the code:

global $user;
function phptemplate_node_form($form) {
    return _phptemplate_callback('my-template-name', array('user' => $user, 'form' => $form));
  }

While this works, it's incredibly klugey. There must be a way to call the customized template through either template.php or some variety of block.tpl.php -- I just don't know how.

mikey_p’s picture

I think the answer would be to add some template suggestions to the theme hook that are trying to modify, with a preprocess function, or from hook_theme_registry_alter().

yashadev’s picture

Status: Active » Closed (fixed)