Use a more specific hook when calling theme('item_list')

Created on 19 December 2014, over 10 years ago
Updated 13 May 2025, 20 days ago

It would allow for easier themeing if a more specific hook was used when calling theme('item_list').

For example if it called it like this:

theme('item_list__views_tree', array('items' => $items, 'type' => $options['type']))

Then themers could easily target views tree item lists by overriding the theme_item_list() theme function and naming it like this:

<?php
function THEMENAME_item_list__views_tree($variables) {

}
?>

It could also still be overridden using the more generic

<?php
function THEMENAME_item_list($variables) {

}
?>
✨ Feature request
Status

Closed: outdated

Version

2.0

Component

Code

Created by

πŸ‡¦πŸ‡ΊAustralia rooby

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024