File: /home/nexper/public_html/crm/custom/modules/Accounts/metadata/popupdefs.php
<?php
$popupMeta = array (
'moduleMain' => 'Account',
'varName' => 'ACCOUNT',
'orderBy' => 'name',
'whereClauses' => array (
'name' => 'accounts.name',
'billing_address_city' => 'accounts.billing_address_city',
'phone_office' => 'accounts.phone_office',
),
'searchInputs' => array (
0 => 'name',
1 => 'billing_address_city',
2 => 'phone_office',
),
'create' => array (
'formBase' => 'AccountFormBase.php',
'formBaseClass' => 'AccountFormBase',
'getFormBodyParams' =>
array (
0 => '',
1 => '',
2 => 'AccountSave',
),
'createButton' => 'LNK_NEW_ACCOUNT',
),
'searchdefs' => array (
0 => 'name',
1 => 'billing_address_city',
2 => 'billing_address_state',
3 => 'billing_address_country',
4 => 'email',
5 =>
array (
'name' => 'assigned_user_id',
'label' => 'LBL_ASSIGNED_TO',
'type' => 'enum',
'function' =>
array (
'name' => 'get_user_array',
'params' =>
array (
0 => false,
),
),
),
),
'listviewdefs' => array (
'NAME' =>
array (
'width' => '40%',
'label' => 'LBL_LIST_ACCOUNT_NAME',
'link' => true,
'default' => true,
'name' => 'name',
),
'SIC_CODE' =>
array (
'type' => 'varchar',
'label' => 'LBL_SIC_CODE',
'width' => '10%',
'default' => true,
),
'BILLING_ADDRESS_CITY' =>
array (
'width' => '10%',
'label' => 'LBL_LIST_CITY',
'default' => true,
'name' => 'billing_address_city',
),
'BILLING_ADDRESS_STATE' =>
array (
'width' => '7%',
'label' => 'LBL_STATE',
'default' => true,
'name' => 'billing_address_state',
),
'BILLING_ADDRESS_COUNTRY' =>
array (
'width' => '10%',
'label' => 'LBL_COUNTRY',
'default' => true,
'name' => 'billing_address_country',
),
'ASSIGNED_USER_NAME' =>
array (
'width' => '2%',
'label' => 'LBL_LIST_ASSIGNED_USER',
'default' => true,
'name' => 'assigned_user_name',
),
),
);