acquia_marina_theme hook for creating a theme for a cck type doesn't take

marita93 - March 31, 2009 - 22:20
Project:Acquia Marina
Version:6.x-1.5
Component:Code
Category:support request
Priority:normal
Assigned:Unassigned
Status:won't fix
Description

This works for a different theme I tried, so I am guessing this fails in acquia_marina because of something to do with the theme. I created a new cck type called 'test' and attempted to override the input/edit screen for this node type by following an example. Here is the code I created:
in template.php:

<?php
function acquia_marina_theme () {
  return array (
'test_node_form' => array(
      
'arguments' => array('form' => NULL),
      
'template' => 'test-node-form',
      ),
   );
}

function
acquia_marina_preprocess_test_node_form(&$vars) {
 
$vars['whole_form'] = drupal_render($vars['form']);
}
?>

in test-node-form.tpl.php:

<div class="test-node-form">
        <?php
               
echo "%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%";
                print (
$whole_form);
       
?>

</div>

I never see this version of the form in acquia_marina, I only see the original default form.
Could someone explain how to create a different theme for the input/edit screen for a cck type using this theme?
thank you!

#1

jwolf - December 22, 2009 - 07:37
Status:active» won't fix
 
 

Drupal is a registered trademark of Dries Buytaert.