I have altered the CRUD paths for entity types and bundles created with Entity Construction Kit. The change propogates correctly, all views which use the ECK provided views fields (Link, Edit, Delete) are now using the correct URL.
The issue is when trying to hit those URL's, the page is always access denied. What I have found in my troubleshooting:
The menu is built within eck.entity.inc. I have used the following test code, inserted at line #93
if ($bundle->name == 'inventory_item' && $action_label == 'Edit') { print_r($access_args); die(); } // result = Array ( [0] => edit [1] => inventory_item [2] => inventory_item [3] => 5 )
Note that the
$access_args
does contain the correct entity id (index 3 in the result array).The menu
access callback
iseck__entity_menu_access()
which is found ineck.module
and I have included the following there, inserted at line 762:if ($action == 'edit' && $bundle_name == 'inventory_item') { print_r(func_get_args());die(); } // result = Array ( [0] => edit [1] => inventory_item [2] => inventory_item [3] => )
Note that index 3 (
$entity_id
) is null now.
I can't figure out where the entity id is lost. I don't think it matters, but I did check the loader, eckentity_load()
and it is loading the correct entity.
Any ideas why the entity id is not making it to the access callback?