<?php

	defined('FULL_PATH') or die('restricted access!');

	// section removal
	$remove_sections = Array (
//		'in-portal:user_list',
//		'in-portal:admins',
//		'in-portal:user_setting_folder',
//		'in-portal:configure_users',
		'in-portal:user_email',
		'in-portal:user_custom'
	);

	// sections shown with debug on
	$debug_only_sections = Array (
//		'in-portal:user_list',
//		'in-portal:admins',
		'in-portal:user_setting_folder',
		'in-portal:configure_users',
//		'in-portal:user_email',
//		'in-portal:user_custom'
	);

	// toolbar buttons
	$remove_buttons = Array (
//		list of users; section: Users Management -> Users
		'users_list' => Array (/*'new_item', 'edit', 'delete', 'approve', 'decline', 'e-mail',*/ 'export', /*'view', 'dbl-click'*/),

//		"General" tab during user adding/editing
//		'users_edit' => Array ('select', 'cancel', 'reset_edit', 'prev', 'next'),

//		"Images" tab during user adding/editing
//		'user_edit_images' => Array ('select', 'cancel', 'prev', 'next', 'new_item', 'edit', 'delete', 'move_up', 'move_down', 'setprimary', 'view', 'dbl-click'),

//		"Groups" tab during user/admin adding/editing
//		'user_edit_groups' => Array ('select', 'cancel', 'prev', 'next', 'selec_user', 'edit', 'delete', 'primary_group', 'view', 'dbl-click'),

//		"Items" tab during user/admin adding/editing
//		'user_edit_items' => Array ('select', 'cancel', 'prev', 'next', 'edit', 'delete', 'view', 'dbl-click'),

//		"Custom" tab during user/admin adding/editing
//		'user_edit_custom' => Array ('select', 'cancel', 'prev', 'next'),

//		list of administrators; section: Users Managements -> Administrators
		'admin_list' => Array (/*'new_item', 'edit', 'delete', */'clone', 'refresh',/* 'view', 'dbl-click'*/),

//		"General" tab during admin adding/editing AND separate password change form for non-"root" users (in top frame)
		'admins_edit' => Array (/*'select', 'cancel', */'reset_edit', /*'prev', 'next'*/),

//		'regular_users_list' => Array (), // not used

//		separate password change form for "root" user (in top frame)
//		'root_edit' => Array ('select', 'cancel'),

//		user/admin group membership editing (used on "Groups" tab during user/admin adding/editing)
//		'user_edit_group' => Array ('select', 'cancel'),

//		user image adding/editing (used on "Images" tab during user adding/editing)
//		'user_image_edit' => Array ('select', 'cancel'),

//		user selector
//		'user_select' => Array ('select', 'cancel', 'view', 'dbl-click'),

//		user selector when adding/editing user group
//		'group_user_select' => Array ('select', 'cancel', 'view', 'dbl-click'),

	);

	// fields to hide
	$hidden_fields = Array (
		/* 'PortalUserId', 'Login', 'Password', 'FirstName','LastName', 'Company', 'Email', 'CreatedOn',
		'Phone', 'Fax', 'Street', 'Street2', 'City', 'State' , 'Zip', 'Country', 'ResourceId', 'Status',
		'Modified', 'dob', 'tz', 'ip', 'IsBanned', 'PassResetTime', 'PwResetConfirm', 'PwRequestTime',
		'MinPwResetDelay', */
	);

	// virtual fields to hide
	$virtual_hidden_fields = Array (
		/*'ValidateLogin', 'SubscribeEmail', 'PrimaryGroup', 'RootPassword', 'FullName', 'UserGroup'*/
	);

	// fields to make required
	$required_fields = Array (
		/*'PortalUserId',*/ 'Login', /*'Password', 'FirstName', 'LastName', 'Company', */'Email', /*'CreatedOn',
		'Phone', 'Fax', 'Street', 'Street2', 'City', 'State' , 'Zip', 'Country', 'ResourceId', 'Status',
		'Modified', 'dob', 'tz', 'ip', 'IsBanned', 'PassResetTime', 'PwResetConfirm', 'PwRequestTime',
		'MinPwResetDelay'*/
	);

	// virtual fields to make required
	$virtual_required_fields = Array (
		/*'ValidateLogin', 'SubscribeEmail', 'PrimaryGroup', 'RootPassword', 'FullName', 'UserGroup'*/
	);

	// tabs during editing
	$hide_edit_tabs = Array (
//		tabs during user editing, when In-Portal module is enabled
		'Default' => Array ('general', 'groups', 'images', 'items', 'custom'),

//		tabs during user editing, when In-Portal module isn't enabled
		'RegularUsers' => Array ('general', 'groups'),

//		tabs during admin editing
		'Admins' => Array ('general', 'groups'),
	);

	// hide columns in grids
	$hide_columns = Array (
//		currently not in user
//		'Default'	=>	Array ('Login', 'LastName', 'FirstName', 'Email', 'PrimaryGroup', 'CreatedOn'),

//		user selector
//		'UserSelector' => Array ('Login', 'LastName', 'FirstName', 'Email', 'PrimaryGroup', 'CreatedOn'),

//		admins list; section: Users Management -> Administrators
//		'Admins' => Array ('PortalUserId', 'Login', 'FirstName', 'LastName', 'Email'),

//		users list; section: Users Management -> Users
		'RegularUsers' => Array (/*'PortalUserId', 'Login', 'FirstName', 'LastName', 'Email',*/ 'PrimaryGroup', 'CreatedOn', /* 'Status'*/),
	);
