Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
By WebRIPPER on
I want to override user_list template (one, used for active/last
users block). So, in 4.7 template.tpl.php added:
function phptemplate_user_list($items, $title = NULL) {
return _phptemplate_callback('user_list', array('items' => $items,
'title' => $title));
}
and placed user_list.tpl.php in theme directory. This one contains
print ('Hello world!');
for debugging.
The cache is clear, and themes are reloaded, but *no change* in
active/last user's block
Missing something, or it's just bug?
Thank you
Comments
CLOSED!!! Just using
CLOSED!!!
Just using template.tpl.php instead of template.php!
dubs snippet works..
Hi.
Try this 4.7 snippet added to the handbook by Dublin Drupaller
http://drupal.org/node/46156
Phil