Improve compatibility between 'user' and 'password policy tab' modules
This commit is contained in:
parent
56910ad47f
commit
7ac2bb7013
3 changed files with 15 additions and 3 deletions
|
@ -1145,7 +1145,8 @@ function user_menu() {
|
|||
if (($categories = _user_categories($empty_account)) && (count($categories) > 1)) {
|
||||
foreach ($categories as $key => $category) {
|
||||
// 'account' is already handled by the MENU_DEFAULT_LOCAL_TASK.
|
||||
if ($category['name'] != 'account') {
|
||||
// 'password' is handled by password_policy_password_tab module if it is installed.
|
||||
if ($category['name'] != 'account' && (!module_exists('password_policy_password_tab') || $category['name'] != 'password')) {
|
||||
$items['user/%user_category/edit/'. $category['name']] = array(
|
||||
'title callback' => 'check_plain',
|
||||
'title arguments' => array($category['title']),
|
||||
|
|
Reference in a new issue