ExpressionEngine Docs

# Channel Fields API Extension Hooks

### `custom_field_modify_data(EE_Fieldtype $ft, $method, $data)`

Parameter | Type | Description
--- | --- | ---
$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 | `Mixed` | Modified $data parameter

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);