save_pod

(Since 1.7.9) -- add or edit a pod
function save_pod($params)

Parameters

$params is an ASSOCIATIVE ARRAY that supports the following attributes:
ParameterTypeDetails
datatype INT the datatype ID (if editing)
name STRING the datatype name (if adding new)
label STRING the datatype label (if editing)
is_toplevel BOOL whether the new pod should be a top-level menu
detail_page STRING the default URL that detail_url should return (optional, e.g. "events/{@slug}")
pre_save_helpers STRING (optional) a comma-separated list of helper names
pre_drop_helpers STRING (optional) a comma-separated list of helper names
post_save_helpers STRING (optional) a comma-separated list of helper names
post_drop_helpers STRING (optional) a comma-separated list of helper names

Returns

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