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.
Warning: Missing argument 2 for _user_tweaks_user_access() in _user_tweaks_user_access() (line 445 of /user_tweaks/user_tweaks.module).
there is copy+paste error in 'user_tweaks_menu_alter(&$items)':
if (isset($items['user/%user/edit'])) {
$items['user/%user/edit']['access callback'] = '_user_tweaks_user_access';
$items['user/%user/cancel']['access arguments'] = array('edit', 1);
}
it should be:
if (isset($items['user/%user/edit'])) {
$items['user/%user/edit']['access callback'] = '_user_tweaks_user_access';
$items['user/%user/edit']['access arguments'] = array('edit', 1);
}
Comments
Comment #1
pawel_r CreditAttribution: pawel_r commented