By oskar_calvo on
Hello.
I'm looking for something like node_type_get_names but for view_mode. Is there any function?
Thanks
Oskar
Hello.
I'm looking for something like node_type_get_names but for view_mode. Is there any function?
Thanks
Oskar
Comments
Here is what I use to get all
Here is what I use to get all the view modes for an entity type. Depending on the context you may want to filter by bundle.
Thanks nevets. Oskar
Thanks nevets.
Oskar