function _ndtest_ds_fields in Display Suite 6.3
1 call to _ndtest_ds_fields()
- ndtest_ds_fields in modules/
nd/ tests/ ndtest.module - Implementation of hook_ds_fields().
File
- modules/
nd/ 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;
}