I wan't to limit the available view modes a user can choose from when creating a "Nodes in block" node. See attached screenshots.
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | restrict_view_modes_1115232-1.patch | 4.67 KB | peter törnstrand |
| Node settings | 29.7 KB | peter törnstrand | |
| Module settings | 21.04 KB | peter törnstrand |
Comments
Comment #1
peter törnstrand commentedAnd here is the patch.
Comment #2
swentel commentedThere's a problem with this patch for people who might want to upgrade since it removes the 'hide links' option from view modes - I agree, it's kind of old and crufty. So either this should go into a new branch or there should be an upgrade path for the 7.x-1.x branch.
Comment #3
peter törnstrand commentedYes, that is a problem. How would you propose that upgrade path look like?
Comment #4
swentel commentedWell, somehow, I'd just keep that option, since it will now be possible to select it from the backend, there's an easy way to hide it on the node edit form.
Comment #5
peter törnstrand commentedOk, I'll put it on my todo list and see if I can get something working.