No longer works with Drupal 6.2 update

aMakUzr - April 19, 2008 - 06:46
Project:download_count
Version:6.x-1.x-dev
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:closed
Description

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.

#1

Chill35 - May 4, 2008 - 17:19

Thank you!

#2

Chill35 - May 4, 2008 - 17:18

I 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.

#3

Chill35 - May 4, 2008 - 17:20
Status:active» fixed

#4

Anonymous (not verified) - May 18, 2008 - 17:22
Status:fixed» closed

Automatically closed -- issue fixed for two weeks with no activity.

 
 

Drupal is a registered trademark of Dries Buytaert.