function ds_create_field in Display Suite 6.3
Factory function to initalise a new Field object
Return value
A correctly initialised Field object
2 calls to ds_create_field()
- dsDisplay::prepare in includes/
dsDisplay.php - Build field and region information
- ds_build_fields_and_regions in includes/
ds.api.inc - Get fields and regions for an object.
File
- ./
ds.module, line 401
Code
function ds_create_field($type) {
module_load_include('php', 'ds', 'includes/dsField');
$type_info = ds_get_field_type($field_type);
$field = new $type_info['class']();
return $field;
}