Closed (fixed)
Project:
Download Count
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
19 Apr 2008 at 06:46 UTC
Updated:
18 May 2008 at 17:22 UTC
Looks like the changes in the Drupal 6.2 update break things, a little ... the "Download count"/maintenance menu does not install and the admin page (/admin/settings/download_count) is not accessible.
I got it working by adding
'access arguments' => array('administer download_count configuration'),
to the hook_menu() implementation to yield
$items['admin/settings/download_count'] = array(
'description' => 'Increments a download counter and logs a descriptive message each time an attached file is downloaded.',
'title' => 'Download count',
'page callback' => 'drupal_get_form',
'page arguments' => array('download_count_admin_settings'),
'access arguments' => array('administer download_count configuration'),
'type' => MENU_NORMAL_ITEM);
'Though this seems to work, I'm not php-fluent and don't even have enough Drupal development knowledge to be properly dangerous, so I don't know whether this is the proper way to address the issue.
Comments
Comment #1
Chill35 commentedThank you!
Comment #2
Chill35 commentedI added a permission, one to administer the module, and I use it as so:
'access arguments' => array('administer download counter'),I recommend you use the new version I just commited, it will be tagged as 6.x-1.1 on the module project page. It will show up there in a little while, after the Drupal script is run.
Thank you very much for having brought this problem to my attention,
Have a splendid day.
C.
Comment #3
Chill35 commentedComment #4
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.