';
$table_content = [
notifications_print_user_switch($source, $id, 'enabled'),
notifications_print_user_switch($source, $id, 'also_mail'),
];
$notifications_enabled = notifications_print_user_switch($source, $id, 'enabled');
$notifications_also_mail = notifications_print_user_switch($source, $id, 'also_mail');
$disabled_flag[] = true;
echo '
'.$source['description'].'
';
echo '
'.$notifications_enabled['switch'].'
';
echo '
'.$notifications_also_mail['switch'].'
';
echo '
';
}
}
if (count($disabled_flag) === 0) {
ui_print_warning_message(
__('Controls have been disabled by the system administrator')
);
}
echo '';
// Print id user to handle it on js.
html_print_input_hidden('id_user', $id);
?>