function hook_asset_field_types_alter in Asset 7
Alter the list of asset supported field types to be overridden.
Parameters
array $types: Types is an array with field type as a key and list of columns to be handled as a value.
File
- ./
asset.api.php, line 14 - Hooks provided by the Asset module.
Code
function hook_asset_field_types_alter(&$types) {
// Adding entityreference to supported field types.
$types['entityreference'] = array(
'target_id',
);
}