PageRenderTime 41ms CodeModel.GetById 17ms RepoModel.GetById 1ms app.codeStats 0ms

/tests/modules/UpgradeWizard/SugarMerge/ce_metadata_files/600/modules/Contacts/metadata/listviewdefs.php

https://github.com/item/sugarcrm_dev
PHP | 169 lines | 130 code | 5 blank | 34 comment | 2 complexity | 1e9c0bacd7ac305cb366c176077d1a33 MD5 | raw file
Possible License(s): AGPL-3.0, LGPL-2.1
  1. <?php
  2. if(!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point');
  3. /*********************************************************************************
  4. * SugarCRM is a customer relationship management program developed by
  5. * SugarCRM, Inc. Copyright (C) 2004-2011 SugarCRM Inc.
  6. *
  7. * This program is free software; you can redistribute it and/or modify it under
  8. * the terms of the GNU Affero General Public License version 3 as published by the
  9. * Free Software Foundation with the addition of the following permission added
  10. * to Section 15 as permitted in Section 7(a): FOR ANY PART OF THE COVERED WORK
  11. * IN WHICH THE COPYRIGHT IS OWNED BY SUGARCRM, SUGARCRM DISCLAIMS THE WARRANTY
  12. * OF NON INFRINGEMENT OF THIRD PARTY RIGHTS.
  13. *
  14. * This program is distributed in the hope that it will be useful, but WITHOUT
  15. * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
  16. * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
  17. * details.
  18. *
  19. * You should have received a copy of the GNU Affero General Public License along with
  20. * this program; if not, see http://www.gnu.org/licenses or write to the Free
  21. * Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
  22. * 02110-1301 USA.
  23. *
  24. * You can contact SugarCRM, Inc. headquarters at 10050 North Wolfe Road,
  25. * SW2-130, Cupertino, CA 95014, USA. or at email address contact@sugarcrm.com.
  26. *
  27. * The interactive user interfaces in modified source and object code versions
  28. * of this program must display Appropriate Legal Notices, as required under
  29. * Section 5 of the GNU Affero General Public License version 3.
  30. *
  31. * In accordance with Section 7(b) of the GNU Affero General Public License version 3,
  32. * these Appropriate Legal Notices must retain the display of the "Powered by
  33. * SugarCRM" logo. If the display of the logo is not reasonably feasible for
  34. * technical reasons, the Appropriate Legal Notices must display the words
  35. * "Powered by SugarCRM".
  36. ********************************************************************************/
  37. $listViewDefs['Contacts'] = array(
  38. 'NAME' => array(
  39. 'width' => '20%',
  40. 'label' => 'LBL_LIST_NAME',
  41. 'link' => true,
  42. 'contextMenu' => array('objectType' => 'sugarPerson',
  43. 'metaData' => array('contact_id' => '{$ID}',
  44. 'module' => 'Contacts',
  45. 'return_action' => 'ListView',
  46. 'contact_name' => '{$FULL_NAME}',
  47. 'parent_id' => '{$ACCOUNT_ID}',
  48. 'parent_name' => '{$ACCOUNT_NAME}',
  49. 'return_module' => 'Contacts',
  50. 'return_action' => 'ListView',
  51. 'parent_type' => 'Account',
  52. 'notes_parent_type' => 'Account')
  53. ),
  54. 'orderBy' => 'name',
  55. 'default' => true,
  56. 'related_fields' => array('first_name', 'last_name', 'salutation', 'account_name', 'account_id'),
  57. ),
  58. 'TITLE' => array(
  59. 'width' => '15%',
  60. 'label' => 'LBL_LIST_TITLE',
  61. 'default' => true),
  62. 'ACCOUNT_NAME' => array(
  63. 'width' => '34%',
  64. 'label' => 'LBL_LIST_ACCOUNT_NAME',
  65. 'module' => 'Accounts',
  66. 'id' => 'ACCOUNT_ID',
  67. 'link' => true,
  68. 'contextMenu' => array('objectType' => 'sugarAccount',
  69. 'metaData' => array('return_module' => 'Contacts',
  70. 'return_action' => 'ListView',
  71. 'module' => 'Accounts',
  72. 'return_action' => 'ListView',
  73. 'parent_id' => '{$ACCOUNT_ID}',
  74. 'parent_name' => '{$ACCOUNT_NAME}',
  75. 'account_id' => '{$ACCOUNT_ID}',
  76. 'account_name' => '{$ACCOUNT_NAME}'),
  77. ),
  78. 'default' => true,
  79. 'sortable'=> true,
  80. 'ACLTag' => 'ACCOUNT',
  81. 'related_fields' => array('account_id')),
  82. 'EMAIL1' => array(
  83. 'width' => '15%',
  84. 'label' => 'LBL_LIST_EMAIL_ADDRESS',
  85. 'sortable' => false,
  86. 'link' => true,
  87. 'customCode' => '{$EMAIL1_LINK}{$EMAIL1}</a>',
  88. 'default' => true
  89. ),
  90. 'PHONE_WORK' => array(
  91. 'width' => '15%',
  92. 'label' => 'LBL_OFFICE_PHONE',
  93. 'default' => true),
  94. 'DEPARTMENT' => array(
  95. 'width' => '10',
  96. 'label' => 'LBL_DEPARTMENT'),
  97. 'DO_NOT_CALL' => array(
  98. 'width' => '10',
  99. 'label' => 'LBL_DO_NOT_CALL'),
  100. 'PHONE_HOME' => array(
  101. 'width' => '10',
  102. 'label' => 'LBL_HOME_PHONE'),
  103. 'PHONE_MOBILE' => array(
  104. 'width' => '10',
  105. 'label' => 'LBL_MOBILE_PHONE'),
  106. 'PHONE_OTHER' => array(
  107. 'width' => '10',
  108. 'label' => 'LBL_OTHER_PHONE'),
  109. 'PHONE_FAX' => array(
  110. 'width' => '10',
  111. 'label' => 'LBL_FAX_PHONE'),
  112. 'EMAIL2' => array(
  113. 'width' => '15',
  114. 'label' => 'LBL_LIST_EMAIL_ADDRESS',
  115. 'sortable' => false,
  116. 'customCode' => '{$EMAIL2_LINK}{$EMAIL2}</a>'),
  117. 'EMAIL_OPT_OUT' => array(
  118. 'width' => '10',
  119. 'label' => 'LBL_EMAIL_OPT_OUT'),
  120. 'PRIMARY_ADDRESS_STREET' => array(
  121. 'width' => '10',
  122. 'label' => 'LBL_PRIMARY_ADDRESS_STREET'),
  123. 'PRIMARY_ADDRESS_CITY' => array(
  124. 'width' => '10',
  125. 'label' => 'LBL_PRIMARY_ADDRESS_CITY'),
  126. 'PRIMARY_ADDRESS_STATE' => array(
  127. 'width' => '10',
  128. 'label' => 'LBL_PRIMARY_ADDRESS_STATE'),
  129. 'PRIMARY_ADDRESS_POSTALCODE' => array(
  130. 'width' => '10',
  131. 'label' => 'LBL_PRIMARY_ADDRESS_POSTALCODE'),
  132. 'ALT_ADDRESS_COUNTRY' => array(
  133. 'width' => '10',
  134. 'label' => 'LBL_ALT_ADDRESS_COUNTRY'),
  135. 'ALT_ADDRESS_STREET' => array(
  136. 'width' => '10',
  137. 'label' => 'LBL_ALT_ADDRESS_STREET'),
  138. 'ALT_ADDRESS_CITY' => array(
  139. 'width' => '10',
  140. 'label' => 'LBL_ALT_ADDRESS_CITY'),
  141. 'ALT_ADDRESS_STATE' => array(
  142. 'width' => '10',
  143. 'label' => 'LBL_ALT_ADDRESS_STATE'),
  144. 'ALT_ADDRESS_POSTALCODE' => array(
  145. 'width' => '10',
  146. 'label' => 'LBL_ALT_ADDRESS_POSTALCODE'),
  147. 'ALT_ADDRESS_COUNTRY' => array(
  148. 'width' => '10',
  149. 'label' => 'LBL_ALT_ADDRESS_COUNTRY'),
  150. 'DATE_ENTERED' => array(
  151. 'width' => '10',
  152. 'label' => 'LBL_DATE_ENTERED'),
  153. 'CREATED_BY_NAME' => array(
  154. 'width' => '10',
  155. 'label' => 'LBL_CREATED'),
  156. 'ASSIGNED_USER_NAME' => array(
  157. 'width' => '10',
  158. 'label' => 'LBL_LIST_ASSIGNED_USER',
  159. 'default' => true),
  160. 'MODIFIED_BY_NAME' => array(
  161. 'width' => '10',
  162. 'label' => 'LBL_MODIFIED')
  163. );
  164. ?>