<?php if (!defined('TL_ROOT')) die('You can not access this file directly!');

/**
 * @copyright  nektarios
 * @author     nektarios
 * @package    Backend
 * @license    nektarios
 * @creator    xtmembers field editor, copyright 2009 aurealis, http://www.aurealis.de
 * @filesource
 */

if (strpos($GLOBALS['TL_DCA']['tl_member']['palettes']['default'], '{personal_legend},') === false) {
	$GLOBALS['TL_DCA']['tl_member']['palettes']['default'] .= ',xt_salutation';
} else {
	$GLOBALS['TL_DCA']['tl_member']['palettes']['default'] = str_replace('{personal_legend},','{personal_legend},xt_salutation,', $GLOBALS['TL_DCA']['tl_member']['palettes']['default']);
}
if (strpos($GLOBALS['TL_DCA']['tl_member']['palettes']['default'], '{personal_legend},') === false) {
	$GLOBALS['TL_DCA']['tl_member']['palettes']['default'] .= ',xt_title';
} else {
	$GLOBALS['TL_DCA']['tl_member']['palettes']['default'] = str_replace('{personal_legend},','{personal_legend},xt_title,', $GLOBALS['TL_DCA']['tl_member']['palettes']['default']);
}

$GLOBALS['TL_DCA']['tl_member']['fields']['xt_salutation'] = array
(
	'label'                   => &$GLOBALS['TL_LANG']['tl_member']['xt_salutation'],
	'default'                 => 'Frau',	
	'exclude'                 => true,
	'search'                  => true,
	'inputType'               => 'select',
	
	'options'                 => array('Frau' => &$GLOBALS['TL_LANG']['tl_member']['xt_salutation_select']['Frau'],'Herr' => &$GLOBALS['TL_LANG']['tl_member']['xt_salutation_select']['Herr']),	
	'eval'                    => array('feEditable' => true,'feViewable' => true,'feGroup' => 'personal','tl_class' => 'w50','mandatory' => true),
	'sql'                     => "varchar(255) NOT NULL default 'Frau'"
);
$GLOBALS['TL_DCA']['tl_member']['fields']['xt_title'] = array
(
	'label'                   => &$GLOBALS['TL_LANG']['tl_member']['xt_title'],
	'default'                 => '-',	
	'exclude'                 => true,
	'search'                  => true,
	'inputType'               => 'select',
	
	'options'                 => array('-' => &$GLOBALS['TL_LANG']['tl_member']['xt_title_select']['-'],'Dr.' => &$GLOBALS['TL_LANG']['tl_member']['xt_title_select']['Dr.'],'Prof.' => &$GLOBALS['TL_LANG']['tl_member']['xt_title_select']['Prof.'],'Prof. Dr.' => &$GLOBALS['TL_LANG']['tl_member']['xt_title_select']['Prof. Dr.']),	
	'eval'                    => array('feEditable' => true,'feViewable' => true,'feGroup' => 'personal','tl_class' => 'w50'),
	'sql'                     => "varchar(255) NOT NULL default '-'"
);

/**
 * Class tl_member_registration_formular
 *
 * Provide miscellaneous methods that are used by the data configuration array.
 * @copyright  nektarios
 * @author     nektarios
 * @package    Controller
 */
class tl_member_registration_formular extends tl_member
{
}

?>