Drupal 6: template.php redirections

mmoore5553

New Member
I haven't worked to much within the template.php file in the Drupal installation, but this time I need to theme a node form. Following an excellent guide I found at http://drupal.org/node/601646, I set up the following snippet.\[code\]function amity_island_theme($existing, $type, $theme, $path) { if ((arg(0) == 'node') && (arg(1) == 'add') && (arg(2) == 'service-request')){ return array( 'service_request_node_form' => array( 'arguments' => array('form' => NULL), 'template' => 'node-add_service_request' )); }}\[/code\]prior to adding the if statement, the site served node-add_service_request.tpl.php for every request. After I added the IF statement, my screen just went completely white (I have PHP errors ON - no errors)Has this happened to anyone...?
 
Back
Top