Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
By ashiwebi on
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
hook_access() only have 2
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
hook_access() only have 2
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