Closed (fixed)
Project:
Entity API
Version:
7.x-1.x-dev
Component:
Code - misc
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
9 Jan 2012 at 06:22 UTC
Updated:
3 Apr 2014 at 17:41 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
cdale commentedI just encountered this as well. Moving the function
entity_ui_get_action_title()out of includes/entity.ui.inc and into entity.module resolved the problem for me. I think at the time the title's are processed, the entity.ui.inc file is not yet loaded, so no title callback is available, hence, no titles.Comment #2
cdale commentedAs an aside, the add and import items don't really need a title callback, as they are fixed strings. When I override the UI Controller class, it's something I generally change in the hook_menu() function, so this could also be an alternative solution to moving the function.
Comment #3
cdale commentedSample code I normally have in hook_menu when extending EntityDefaultUIController.
Comment #4
codycraven commentedMoved entity_ui_get_action_title() into .module so that menu title callback function is available on non-entity UI pages when menu cache flushes.
Comment #5
peximo commented#4: entity-fix-blank-menu-titles-1398314-4.patch queued for re-testing.
Comment #7
peximo commentedRerolled.
Comment #8
plachThis is working here.
Comment #9
fagoThanks, committed.