Timeline for How to add body class that carries the menu depth of the current page?
Current License: CC BY-SA 3.0
5 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| May 2, 2012 at 21:40 | comment | added | Marcos Buarque | It appears it returns an array with all the elements of the breadcrumb array. | |
| May 2, 2012 at 10:42 | comment | added | mpdonadio♦ | If it works, then it is right. Couldn't quite remember exactly what menu_get_active_breadcrumb() returned at the $breadcrumb. | |
| May 2, 2012 at 4:53 | comment | added | Marcos Buarque | Thank you! This works. Actually, I think $depth = sizeof($breadcrumb) will give me the depth number I need where $breadcrumb = menu_get_active_breadcrumb()... Is this right? I am using this and it works for me. | |
| May 2, 2012 at 4:49 | vote | accept | Marcos Buarque | ||
| Apr 27, 2012 at 20:36 | history | answered | mpdonadio♦ | CC BY-SA 3.0 |