Timeline for I want to PROGRAMMATICALLY change the roles that can view a block
Current License: CC BY-SA 3.0
6 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Oct 1, 2015 at 12:55 | comment | added | Yogesh Pratap | can you explain what actually you want. | |
Oct 1, 2015 at 12:44 | comment | added | Karmen | Is the main-menu block from admin_menu module | |
Oct 1, 2015 at 12:43 | comment | added | Yogesh Pratap | if you add block then you write your code under "Block body". | |
Oct 1, 2015 at 12:40 | comment | added | Karmen | as body content what do you mean? | |
Oct 1, 2015 at 12:40 | comment | added | Yogesh Pratap |
use php code for the body section and put the condition if($user == admin) { // body content } the body content only show if user admin.
|
|
Oct 1, 2015 at 12:34 | history | answered | Yogesh Pratap | CC BY-SA 3.0 |