Timeline for Add the view mode to the CSS classes used for the body
Current License: CC BY-SA 4.0
8 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Jun 3, 2019 at 5:00 | history | edited | usmanjutt84 | CC BY-SA 4.0 |
deleted 1 character in body
|
Mar 29, 2018 at 10:23 | comment | added | usmanjutt84 | I'm glad it works for you | |
Mar 29, 2018 at 10:00 | comment | added | Ben | @usmanjutt84 - Yes, you are absolutely right. I was trying to access $node from above your part of the code. Thanks very much for your help. | |
Mar 29, 2018 at 9:59 | vote | accept | Ben | ||
Mar 28, 2018 at 11:58 | comment | added | usmanjutt84 |
@Ben, I already added if ($node = menu_get_object()) , it'll load all objects into $node so you can access any object of the node like $node->nid . See more about menu_get_object()
|
|
Mar 28, 2018 at 9:17 | comment | added | Ben | Thank you very much for your answer. This looks good, but how can I get $node ($node->nid) from inside the function? If I know this I can get it to work. | |
Mar 27, 2018 at 22:38 | comment | added | Kevin | It doesn't matter what theme you are using, you should be able to add a body class in any theme. | |
Mar 27, 2018 at 22:27 | history | answered | usmanjutt84 | CC BY-SA 3.0 |