I am creating one module but in hook_access I have this warning message

warning: Missing argument 3 for course_access() in /var/www/project/drupaled/sites/all/modules/course/course.module on line 94.

Comments

Iumentum’s picture

hook_access() only have 2 arguments in drupal 5 but have 3 in drupal 6 so it sounds strange if you use drupal 5.x.
But try to paste your course_access() function here and it will be a bit easyer to help.
And please confirm that your using drupal 5.x

ashiwebi’s picture

Thanks for you solution. The problem is in sending returning arrays.I know the hook_access have 2 arguments in drupal 5.x and 3 in drupal 6.x

I am using drupal5.x