<?php

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


foreach ($GLOBALS['TL_DCA']['tl_content']['palettes'] as $key => $palette)
{
  $GLOBALS['TL_DCA']['tl_content']['palettes'][$key] = str_replace(';{invisible_legend', ',es_iso_hide_list;{invisible_legend', $palette);
}

/**
 * Add fields to tl_content
 */

$GLOBALS['TL_DCA']['tl_content']['fields']['es_iso_hide_list'] = array
(
    'label'                   => &$GLOBALS['TL_LANG']['tl_content']['es_iso_hide_list'],
    'exclude'                 => true,
    'inputType'               => 'checkbox',
    'eval'                    => array('tl_class'=>'w50 m12'),
    'sql'                     => "char(1) NOT NULL default ''"
);

