Файл: contao-3.5.8/system/modules/calendar/dca/tl_user_group.php
Строк: 31
<?php
/**
* Contao Open Source CMS
*
* Copyright (c) 2005-2016 Leo Feyer
*
* @license LGPL-3.0+
*/
/**
* Extend default palette
*/
$GLOBALS['TL_DCA']['tl_user_group']['palettes']['default'] = str_replace('fop;', 'fop;{calendars_legend},calendars,calendarp,calendarfeeds,calendarfeedp;', $GLOBALS['TL_DCA']['tl_user_group']['palettes']['default']);
/**
* Add fields to tl_user_group
*/
$GLOBALS['TL_DCA']['tl_user_group']['fields']['calendars'] = array
(
'label' => &$GLOBALS['TL_LANG']['tl_user']['calendars'],
'exclude' => true,
'inputType' => 'checkbox',
'foreignKey' => 'tl_calendar.title',
'eval' => array('multiple'=>true),
'sql' => "blob NULL"
);
$GLOBALS['TL_DCA']['tl_user_group']['fields']['calendarp'] = array
(
'label' => &$GLOBALS['TL_LANG']['tl_user']['calendarp'],
'exclude' => true,
'inputType' => 'checkbox',
'options' => array('create', 'delete'),
'reference' => &$GLOBALS['TL_LANG']['MSC'],
'eval' => array('multiple'=>true),
'sql' => "blob NULL"
);
$GLOBALS['TL_DCA']['tl_user_group']['fields']['calendarfeeds'] = array
(
'label' => &$GLOBALS['TL_LANG']['tl_user']['calendarfeeds'],
'exclude' => true,
'inputType' => 'checkbox',
'foreignKey' => 'tl_calendar_feed.title',
'eval' => array('multiple'=>true),
'sql' => "blob NULL"
);
$GLOBALS['TL_DCA']['tl_user_group']['fields']['calendarfeedp'] = array
(
'label' => &$GLOBALS['TL_LANG']['tl_user']['calendarfeedp'],
'exclude' => true,
'inputType' => 'checkbox',
'options' => array('create', 'delete'),
'reference' => &$GLOBALS['TL_LANG']['MSC'],
'eval' => array('multiple'=>true),
'sql' => "blob NULL"
);