Hello, I have strange errors(warnings) with hook_access in 6.15: function EmMarketing_access($op, $node, $account) { } Getting these in admin interface: warning: Missing argument 1 for EmMarketing_access() in /Applications/MAMP/htdocs/drupal-6.15/modules/EmMarketing/EmMarketing.module on line 158. warning: Missing argument 2 for EmMarketing_access() in /Applications/MAMP/htdocs/drupal-6.15/modules/EmMarketing/EmMarketing.module on line 158. warning: Missing argument 3 for EmMarketing_access() in /Applications/MAMP/htdocs/drupal-6.15/modules/EmMarketing/EmMarketing.module on line 158. Probably something goes wrong in hook_menu? Mising some values? Thank you in advance, Ktt
Usually this means that either: 1) Core or EmMarketing is out of date, fixed by updating 2) There is a bug in EmMarketing. If that is a drupal.org module, open an issue for it. If it's custom code, check out api.drupal.org for expected usage. - Ken Winters On Feb 2, 2010, at 6:49 PM, ktt wrote:
Hello,
I have strange errors(warnings) with hook_access in 6.15:
function EmMarketing_access($op, $node, $account) {
}
Getting these in admin interface:
warning: Missing argument 1 for EmMarketing_access() in / Applications/MAMP/htdocs/drupal-6.15/modules/EmMarketing/ EmMarketing.module on line 158. warning: Missing argument 2 for EmMarketing_access() in / Applications/MAMP/htdocs/drupal-6.15/modules/EmMarketing/ EmMarketing.module on line 158. warning: Missing argument 3 for EmMarketing_access() in / Applications/MAMP/htdocs/drupal-6.15/modules/EmMarketing/ EmMarketing.module on line 158.
Probably something goes wrong in hook_menu? Mising some values?
Thank you in advance, Ktt
This is unrelated to your other problem, but that directory isn't an appropriate place for non-core code. It should go in sites (either all or default), and to move it you may need to alter the system table row. On Feb 2, 2010, at 6:49 PM, ktt wrote:
/Applications/MAMP/htdocs/drupal-6.15/modules/EmMarketing/ EmMarketing.module
participants (2)
-
Ken Winters -
ktt