Search code examples
drupaldrupal-7drupal-theming

drupal phptemplate_menu_tree


I am using Drupal 7, I am trying to test phptemplate_menu_tree, I created a file named, template.php and add following:

<?php
// $Id: template.php,v 1.01 2011/2/24 12:47:27 dries Exp $

function phptemplate_menu_tree($variables) {
    return '<ul> <li> test </li> </ul>';
}

But it is not working.


Solution

  • It appears in drupal 7, they have dropped the engine_theme (phptemplate_menu_tree) hook. renaming the engine_theme hook to template-name_theme (mytemplate_menu_tree) hook make it worked.