save_helper

(Since 1.7.9) -- add or edit a pods helper
function save_helper($params)

Parameters

$params is an ASSOCIATIVE ARRAY that supports the following attributes:
ParameterTypeDetails
id INT the template ID (if editing)
name STRING the template name (if adding new)
helper_type STRING the helper type (if adding new, e.g. "display", "pre_save", or "post_drop")
phpcode STRING the helper code

Returns

Nothing, or a string beginning with "Error".
See Also