Posted by jesss on March 5, 2008 at 8:15pm
Jump to:
| Project: | Form Block |
| Version: | 5.x-1.x-dev |
| Component: | Code |
| Category: | support request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Issue Summary
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
#1
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:
<?phpglobal $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.
#2
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().