M
M
Maxim Voronkov2017-01-09 16:40:25
PHP
Maxim Voronkov, 2017-01-09 16:40:25

How to hide superuser in Drupal 7 user list?

Good afternoon, colleagues. How can I hide the superuser in the admin panel?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
andead, 2017-01-09
@andead

function hook_form_user_admin_account_alter(&$form) {
  if (isset($form['accounts']['#options'][1])) {
    unset($form['accounts']['#options'][1]);
  }
}

N
Nikit Khaner, 2017-01-19
@Nikiit

Перекрыть показ пользователей через Views (admin/people), и в фильтрах убрать показ суперпользователя.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question