开发者

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 follow开发者_运维技巧ing:

<?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.


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.


Have you updated the theme registry with devel.module or by resaving the form at admin/build/themes?

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜