- 🇫🇷France dqd London | N.Y.C | Paris | Hamburg | Berlin
Drupal 7 EOL is January 2025 and this issue has no activity.
Problem:
When I try to overwrite the title of the edit link of a an entity built with ECK the page responds with an access denied message.
Background:
This works:
function mymodule_menu_alter(&$items) {
$items['myentity/add']['title'] = t('Add your Entity');
}
This causes the edit link to throw an 'access denied' error:
function mymodule_menu_alter(&$item) {
$items['myentity/add']['title'] = t('Add your Entity'); // Still works.
$items['myentity/%/edit']['title'] = t('Edit your Entity'); // Access Denied!
}
Has anyone else run into a similar issue and if so do you have a solution or work-around? Thanks.
For fun I went into the database and manually changed the title of the menu items to see what would happen. If I just change the title directly in the database the updated title is displayed and the page works as expected.
Closed: outdated
Code
Not all content is available!
It's likely this issue predates Contrib.social: some issue and comment data are missing.
Drupal 7 EOL is January 2025 and this issue has no activity.