Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
As user, I would like to see bundle's label instead of machine name while editing the field (fape_field_edit_page()
callback).
I would consider this as a bug as I don't see any use cases for using bundle's machine name in the title. It's likely that the $bundle
variable was decided to be used while machine name and label was same while testing this implementation and wasn't paid attention?
Title related issue (but not related to this problem): #1346408: Use a title callback instead of drupal_set_title()
Comment | File | Size | Author |
---|---|---|---|
#1 | fape-2252029-1.patch | 992 bytes | iMiksu |
Comments
Comment #1
iMiksuI've tried this solving it right away under the callback function and using the information from
$entity_info
.I'm assuming that any entity has an list of bundles, but I don't trust that all bundles has an label, so that's why I'm setting a default
$bundle_label
using the original$bundle
value before the loop.Comment #2
DamienMcKennaComment #3
DamienMcKennaCommitted. Thanks!