Modules can now specify a more specific theme callback for links, so that theming of links can be overridden for specific purposes.
For instance, the Node module uses 'links__node' rather than just 'links' as its theme callback when adding links to nodes, so if you want to override just the theming of these links, you can do it in a mytheme_links__node() function, rather than adding some complicated logic to the the generic mytheme_links() function.
Other examples in Drupal core are links__contextual, links__system_main_menu, links__system_secondary_menu, etc.
(copied from http://drupal.org/node/254940#theme-links-specifics )
Comment | File | Size | Author |
---|---|---|---|
#1 | 1423664-tao-theme-links-specific.patch | 1.59 KB | barraponto |
Comments
Comment #1
barraponto CreditAttribution: barraponto commentedThis patch is based on #1423654: theme_links() has a new parameter 'heading' for accessibility, so it makes sense to commit that first.
Comment #2
CoffeyMachine CreditAttribution: CoffeyMachine commentedPatch tested and committed to 7.x-3.x. Thanks!