<?php

/**
 * Tweaks for Contao
 *
 * Copyright (c) 2016 Benjamin Roth [http://www.esales-media.de]
 *
 * @package eSM_tweaks
 * @link    http://www.esales-media.de
 * @license commercial
 */

/**
 * Extend default palette
 */
$GLOBALS['TL_DCA']['tl_module']['palettes']['expertisePDF'] = '{title_legend},name,headline,type;{expertise_legend},classname;{protected_legend:hide},protected;{expert_legend:hide},guests,cssID,space';

$GLOBALS['TL_DCA']['tl_module']['fields']['classname'] = array
(
  'label'                 => &$GLOBALS['TL_LANG']['tl_module']['classname'],
  'exclude'               => true,
  'inputType'             => 'text',
  'eval'                  => array('mandatory'=>false, 'tl_class'=>'w50','decodeEntities'=>true),
  'sql'                   => "varchar(255) NOT NULL default ''"
);