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

pawel_r’s picture

Status: Active » Closed (outdated)