Legacy Documentation
You are using the documentation for version 3.5.17. Go here for the latest version or check here for your available upgrades to the latest version.
Channel Fields API Extension Hooks¶
custom_field_modify_data¶
-
custom_field_modify_data
(EE_Fieldtype $ft, $method, $data)¶ Modify the main custom field data array before a custom field method is called.
How it’s called:
$data = ee()->extensions->universal_call('custom_field_modify_data', $obj, $method, $data);
Parameters: - $ft (object) – Fieldtype object that the method will be called on.
- $method (string) – Name of the method to be called
- $data (mixed) – Data passed to the fieldtype. Varies by method.
Returns: Modified $data parameter
Return type: Mixed
New in version 2.7.0.