<?php
/**
* This file is part of contao-weinanlieferung-bundle.
*
* (c) vonRotenberg
*
* @license commercial
*/
use Contao\CoreBundle\DataContainer\PaletteManipulator;
// Extend the login palette
PaletteManipulator::create()
->addLegend('luumicore_legend', 'name_legend', PaletteManipulator::POSITION_AFTER)
->addField('wa_expanded_bookings', 'luumicore_legend', PaletteManipulator::POSITION_APPEND)
->applyToPalette('default', 'tl_user')
->applyToPalette('login', 'tl_user')
->applyToPalette('admin', 'tl_user')
->applyToPalette('group', 'tl_user')
->applyToPalette('extend', 'tl_user')
->applyToPalette('custom', 'tl_user')
;
// Add fields to tl_user
$GLOBALS['TL_DCA']['tl_user']['fields']['wa_expanded_bookings'] = array
(
'exclude' => true,
'inputType' => 'checkbox',
'eval' => array('tl_class'=>'w50'),
'sql' => "char(1) NOT NULL default ''"
);