Download & Extend

custom theme template.php assigning node-form.tpl.php breaks module functionality

Project:Dependent
Version:6.x-1.x-dev
Component:Code
Category:support request
Priority:normal
Assigned:Unassigned
Status:active

Issue Summary

I am having trouble getting this to work on my theme. It works fine on Garland, however.

After troubleshooting I see that calling the below code in template.php breaks dependent fields.
Removing the code allows functionality to work perfectly on my theme, but I am unable to customize the profile-node-form page without using the .tpl.php

From template.php:

<?php
function mytheme_theme() {
  return array(
   
'profile_node_form' => array(
     
'arguments' => array('form' => NULL),
     
'template' => 'profile-node-form',
    ),
  );
}
?>

Could anyone give me any pointers on this issue? I appreciate it.

Comments

#1

Category:bug report» support request

First, please try this patch:
http://drupal.org/node/624852#comment-2330950

If that doesn't work for you, please attach your profile-node-form template and any non-standard javascript you're using.
Also please report any relevant errors from php logs, watchdog, or javascript.

nobody click here