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 )

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

barraponto’s picture

Status: Active » Needs review
Issue tags: +Tao D7CX
FileSize
1.59 KB

This patch is based on #1423654: theme_links() has a new parameter 'heading' for accessibility, so it makes sense to commit that first.

CoffeyMachine’s picture

Status: Needs review » Fixed

Patch tested and committed to 7.x-3.x. Thanks!

Automatically closed -- issue fixed for 2 weeks with no activity.

  • Commit 15c9010 on 7.x-3.x, 8.x-3.x by CoffeyMachine:
    Issue #1423664 by barraponto: theme_links() now allows more targeted...