I've been messing with the AcidFree module lately, and it seems to work pretty well, but there's one bug that hasn't been addressed by the maintainer, so I'm trying to figure it out. There is supposed to be a "My Acidfree Albums" link that is displayed if the "get a per-user album" access is granted, but it is not displaying for some reason.
The following code exists in acidfree_menu:
if (variable_get('acidfree_per_user_albums', false)) {
$items[] = array('path' => 'user/acidfree', 'title' => t('My Acidfree Albums'),
'access' => user_access('get a per-user album'),
'callback' => 'acidfree_page',
'type' => MENU_SUGGESTED_ITEM,
);
}
It looks okay to me (from what I know of hook_menu()), but it isn't working. So, I want to see the value that is in $items['access'], so I try a print statement like this:
if (variable_get('acidfree_per_user_albums', false)) {
$items[] = array('path' => 'user/acidfree', 'title' => t('My Acidfree Albums'),
'access' => user_access('get a per-user album'),
'callback' => 'acidfree_page',
'type' => MENU_SUGGESTED_ITEM,
);
$temp = $items['access'];