If your fieldtype doesn’t already work fine with Henshu (displaying and saving of data), you can either tweak your fieldtype with its standard methods, or tweak it by adding a Henshu compatibility functions in your fieldtype file (see the Fieldtype Framework Functions below). These functions will allow you to process data before being saved in the database, and modify how your custom field is displayed from Henshu, for example.
Henshu first looks for Henshu functions in the third-party’s fieldtype file (ft.field.php). If Henshu functions are not found, Henshu looks for fieldtype support files corresponding to a fieldtype in the Henshu/fieldtypes folder. The fallback is Henshu displaying and procesing the field using its default methods.
Examples of compatibility files can be found in Henshu under /system/expressionengine/third_party/henshu/fieldtypes.
Add extra scripts, styles, etc, after the Henshu custom field edit form is opened in the view.
henshu_add_extra_output($field_data, $entry_id, $field_id)
$return: (mixed) The data to be added along with the custom field.
Extra processing of data before the
save() routine is launched.
henshu_pre_save($new_data, $entry_id, $field_id)
$return: (mixed) The data to be passed in your fieldtype’s save() method. Data MUST be returned.
(Deprecated since 0.7.0)
Process data for your fieldtype save() method’s special needs when called from the EE Channel Entries API
henshu_process_save_data($field_data, $entry_id, $field_id)
$return: (mixed) The data to be passed in your fieldtype’s save() method.