notifications_set_user_label_status( $source, $user, $label, $value ), ] ); return; } echo '
'.__('Enable').'
'.__('Also receive an email').'
'; $sources = notifications_get_all_sources(); foreach ($sources as $source) { echo '
'; $table_content = [ $source['description'], notifications_print_user_switch($source, $id, 'enabled'), notifications_print_user_switch($source, $id, 'also_mail'), ]; echo '
'.$source['description'].'
'; echo '
'.notifications_print_user_switch($source, $id, 'enabled').'
'; echo '
'.notifications_print_user_switch($source, $id, 'also_mail').'
'; echo '
'; } echo '
'; // Print id user to handle it on js. html_print_input_hidden('id_user', $id); ?>