1 user.module | user_preprocess_page_components(&$variables) |
Implements hook_preprocess_page_component().
Suppresses tabs when user form appearance is "links".
File
- core/
modules/ user/ user.module, line 1936 - Enables the user registration and login system.
Code
function user_preprocess_page_components(&$variables) {
if (user_is_logged_in()) {
return;
}
// Suppress tabs if for user forms when using "links" appearance.
if (user_is_login_path() && config_get('system.core', 'user_login_appearance') == 'links') {
$variables['tabs'] = '';
}
}