Code:
<?php
$listViewDefs ['<my module>'] =
array (
'DATE_ENTERED' =>
array (
'width' => '10%',
'label' => 'LBL_DATE_ENTERED',
'default' => true,
),
'FIRST_NAME_C' =>
array (
'width' => '10%',
'label' => 'LBL_FIRST_NAME',
'link' => true,
'default' => true,
),
'LAST_NAME_C' =>
array (
'width' => '10%',
'label' => 'LBL_LAST_NAME',
'link' => true,
'default' => true,
),
'EMAIL_ADDRESS_C' =>
array (
'width' => '10%',
'label' => 'LBL_EMAIL_ADDRESS',
'default' => true,
),
'ADDRESS_TOWN_CITY_C' =>
array (
'width' => '10%',
'label' => 'LBL_ADDRESS_TOWN_CITY',
'default' => true,
),
'POSTCODE_C' =>
array (
'width' => '10%',
'label' => 'LBL_POSTCODE',
'default' => true,
),
'MOBILE_NUMBER_C' =>
array (
'width' => '10%',
'label' => 'LBL_MOBILE_NUMBER',
'default' => true,
),
'LANDLINE_NUMBER_C' =>
array (
'width' => '10%',
'label' => 'LBL_LANDLINE_NUMBER',
'default' => true,
),
'TRAINING_PROVIDER_C' =>
array (
'width' => '5%',
'label' => 'LBL_TRAINING_PROVIDER',
'default' => true,
),
'STATUS_C' =>
array (
'width' => '5%',
'label' => 'LBL_STATUS',
'sortable' => false,
'default' => true,
),
'ADDRESS_LINE_2_C' =>
array (
'width' => '10%',
'label' => 'LBL_ADDRESS_LINE_2',
'default' => false,
),
'ADDRESS_LINE_1_C' =>
array (
'width' => '10%',
'label' => 'LBL_ADDRESS_LINE_1',
'default' => false,
),
'OTHER_C' =>
array (
'width' => '10%',
'label' => 'LBL_OTHER',
'default' => false,
),
'QUESTION_1_C' =>
array (
'width' => '10%',
'label' => 'LBL_QUESTION_1',
'default' => false,
),
'QUESTION_2_C' =>
array (
'width' => '10%',
'label' => 'LBL_QUESTION_2',
'default' => false,
),
'QUESTION_5_C' =>
array (
'width' => '10%',
'label' => 'LBL_QUESTION_5',
'default' => false,
),
'QUESTION_3_C' =>
array (
'width' => '10%',
'label' => 'LBL_QUESTION_3',
'default' => false,
),
'QUESTION_4_C' =>
array (
'width' => '10%',
'label' => 'LBL_QUESTION_4',
'default' => false,
),
'QUESTION_6_C' =>
array (
'width' => '10%',
'label' => 'LBL_QUESTION_6',
'sortable' => false,
'default' => false,
),
'ORGANISATION_C' =>
array (
'width' => '10%',
'label' => 'LBL_ORGANISATION',
'default' => false,
),
);
?> Here is the cache/modules/<my module>/<my module>vardefs.php definition for the field: Code:
'status_c' =>
array (
'required' => '1',
'source' => 'custom_fields',
'name' => 'status_c',
'vname' => 'LBL_STATUS',
'type' => 'enum',
'massupdate' => '1',
'default' => 'Submitted',
'comments' => '',
'help' => '',
'importable' => 'true',
'duplicate_merge' => 'disabled',
'duplicate_merge_dom_value' => '0',
'audited' => 1,
'reportable' => 0,
'len' => 100,
'options' => 'application_status',
'studio' => 'visible',
'id' => '<my module>status_c',
'custom_module' => '<my module>',
), snip
Bookmarks