In one of my Drupal sites I re-themed a minor issue in the menus, and discovered that the book navigation system just uses code that looks similar to the menu themes, but isn't actually themed.

This very small patch adds a function theme_book_menu_item modeled closely on theme_menu_item from the menu system, and lets me theme this output as necessary; I believe it's incompatible with the other book menu patch floating around (and hopefully not necessary, but I haven't looked too closely at what that patch actually does).

Hopefully I didn't break anything with it!

Comments

merlinofchaos’s picture

StatusFileSize
new1.79 KB

Whoops. That patch had the wrong comment (silly cut & paste); though functionally nothing was wrong with it.

This patch is updated with a marginally better comment for the new function.

Uwe Hermann’s picture

Status: Needs review » Needs work

Patch doesn't apply anymore. Also, we don't use TABs in the code.

merlinofchaos’s picture

Status: Needs work » Closed (won't fix)

Changing to won't fix since "doesn't apply" isn't much like "code needs work" to me.