Closed (fixed)
Project:
Drupal core
Version:
6.x-dev
Component:
base system
Priority:
Normal
Category:
Task
Assigned:
Reporter:
Created:
7 Oct 2007 at 22:50 UTC
Updated:
22 Oct 2007 at 15:01 UTC
Jump to comment: Most recent file
My themers ask me for first/last classes on things on a constant basis. primary/secondary links already have them, but other lists don't. Attached patch adds first/last classes to all theme_item_list lists as well as to all menu block lists. It's just extra hooks for themers to play with.
| Comment | File | Size | Author |
|---|---|---|---|
| #6 | notices_9.patch | 642 bytes | webernet |
| #2 | firstlast_0.patch | 3.4 KB | Crell |
| firstlast.patch | 4.07 KB | Crell |
Comments
Comment #1
yched commentedOoh yes, +1.
The parts that affect menu_local_tasks() seem unneeded ?
Comment #2
Crell commentedIndeed, that's because they are. :-) I had tried to add first/last there as well, but gave up because that function scares me.
Comment #3
yched commentedready then...
Comment #4
gábor hojtsyGood idea, good code, committed.
Comment #5
webernet commentedThis patch introduced the following notices on admin/build/modules
* notice: Undefined variable: items in /includes/menu.inc on line 596.
* notice: Undefined variable: items in /includes/menu.inc on line 597.
* warning: Invalid argument supplied for foreach() in /includes/menu.inc on line 597.
Comment #6
webernet commentedComment #7
dvessel commentedComment #8
Stefan Nagtegaal commentedSimple one-liner, RTBC!
Comment #9
gábor hojtsyThat was quick, thanks, committed.
Comment #10
(not verified) commented