function _ndtest_ds_fields in Node displays 6.3
Same name and namespace in other branches
- 6.2 tests/ndtest.ds_default.inc \_ndtest_ds_fields()
- 7 tests/ndtest.ds_default.inc \_ndtest_ds_fields()
1 call to _ndtest_ds_fields()
- ndtest_ds_fields in tests/
ndtest.module - Implementation of hook_ds_fields().
File
- tests/
ndtest.ds_default.inc, line 140 - Display suite default settings.
Code
function _ndtest_ds_fields() {
$data = array(
'nd' => array(
'test_key' => array(
'title' => 'Test key',
'type' => DS_FIELD_TYPE_CODE,
'status' => DS_FIELD_STATUS_DEFAULT,
'properties' => array(
'formatters' => array(
'ds_eval_code' => t('Default'),
),
'code' => '<?php
echo "Test key: ". $object->nid;
?>',
),
'exclude' => array(
'story' => 'story',
'page' => 0,
),
),
),
);
return $data;
}