开发者

How to override Drupal's default theme_table() function?

开发者 https://www.devze.com 2023-02-12 03:26 出处:网络
How do I override the theme_table() function of the Drupal core in my theme? I j开发者_如何学Pythonust wrote another function named theme_table() in my template.php file, but the default theme_table()

How do I override the theme_table() function of the Drupal core in my theme? I j开发者_如何学Pythonust wrote another function named theme_table() in my template.php file, but the default theme_table() is still in effect.


It sounds like your template.php file isn't being read, because having two functions with the same name should trigger an error. Try renaming your theme_table() function to THEMENAME_table() (where THEMENAME is the name of your theme) or to phptemplate_table().

If that still doesn't work, try clearing your theme cache.

0

精彩评论

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