Вход Регистрация
Файл: contao-3.5.8/system/modules/news/dca/tl_user.php
Строк: 39
<?php

/**
 * Contao Open Source CMS
 *
 * Copyright (c) 2005-2016 Leo Feyer
 *
 * @license LGPL-3.0+
 */


/**
 * Extend default palette
 */
$GLOBALS['TL_DCA']['tl_user']['palettes']['extend'] = str_replace('fop;''fop;{news_legend},news,newp,newsfeeds,newsfeedp;'$GLOBALS['TL_DCA']['tl_user']['palettes']['extend']);
$GLOBALS['TL_DCA']['tl_user']['palettes']['custom'] = str_replace('fop;''fop;{news_legend},news,newp,newsfeeds,newsfeedp;'$GLOBALS['TL_DCA']['tl_user']['palettes']['custom']);


/**
 * Add fields to tl_user_group
 */
$GLOBALS['TL_DCA']['tl_user']['fields']['news'] = array
(
    
'label'                   => &$GLOBALS['TL_LANG']['tl_user']['news'],
    
'exclude'                 => true,
    
'inputType'               => 'checkbox',
    
'foreignKey'              => 'tl_news_archive.title',
    
'eval'                    => array('multiple'=>true),
    
'sql'                     => "blob NULL"
);

$GLOBALS['TL_DCA']['tl_user']['fields']['newp'] = array
(
    
'label'                   => &$GLOBALS['TL_LANG']['tl_user']['newp'],
    
'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']['fields']['newsfeeds'] = array
(
    
'label'                   => &$GLOBALS['TL_LANG']['tl_user']['newsfeeds'],
    
'exclude'                 => true,
    
'inputType'               => 'checkbox',
    
'foreignKey'              => 'tl_news_feed.title',
    
'eval'                    => array('multiple'=>true),
    
'sql'                     => "blob NULL"
);

$GLOBALS['TL_DCA']['tl_user']['fields']['newsfeedp'] = array
(
    
'label'                   => &$GLOBALS['TL_LANG']['tl_user']['newsfeedp'],
    
'exclude'                 => true,
    
'inputType'               => 'checkbox',
    
'options'                 => array('create''delete'),
    
'reference'               => &$GLOBALS['TL_LANG']['MSC'],
    
'eval'                    => array('multiple'=>true),
    
'sql'                     => "blob NULL"
);
Онлайн: 0
Реклама