append_form_custom_fields
catalogue_file_script
create_selection_list_field_type
delete_form_custom_fields
get_bound_content_entry
get_catalogue_fields
get_fields_hook
has_tied_catalogue
manage_custom_fields_donext_link
manage_custom_fields_entry_points
option_value_from_field_array
parse_field_options
save_form_custom_fields
append_form_custom_fields(\ID_TEXT $content_type, \?ID_TEXT $id, \Tempcode $fields, \Tempcode $hidden, \?array $field_filter= null, boolean $field_filter_whitelist= true, boolean $add_separate_header= false)
| package | core_fields |
|---|
\ID_TEXTContent type hook codename
\?ID_TEXTContent entry ID (null: new entry)
\TempcodeFields (passed by reference)
\TempcodeHidden Fields (passed by reference)
\?arrayLimit fields to a set (null: no limit)
booleanWhether $field_filter is a whitelist (if false, it is a blacklist)
booleanWhether to add a separate header above the fields, so long as not all the fields are already under some other header
create_selection_list_field_type(\ID_TEXT $type= '', boolean $limit_to_storage_set= false) : \Tempcode
| package | core_fields |
|---|
\ID_TEXTField type to select
booleanWhether to only show options in the same storage set as $type
\TempcodeList of field typesdelete_form_custom_fields(\ID_TEXT $content_type, \ID_TEXT $id)
| package | core_fields |
|---|
\ID_TEXTContent type hook codename
\ID_TEXTContent entry ID
get_bound_content_entry(\ID_TEXT $content_type, \ID_TEXT $id) : \?AUTO_LINK
| package | core_fields |
|---|
\ID_TEXTContent type hook codename
\ID_TEXTContent entry ID
\?AUTO_LINKBound catalogue entry ID (null: none)get_catalogue_fields(\?ID_TEXT $catalogue_name = null) : array
| package | core_fields |
|---|
\?ID_TEXTThe name of the catalogue (null: all catalogues)
arrayThe fields (empty array if the catalogue does not exist)get_fields_hook(\ID_TEXT $type) : object
has_tied_catalogue(\ID_TEXT $content_type) : boolean
| package | core_fields |
|---|
\ID_TEXTContent type hook codename
booleanWhether it hasmanage_custom_fields_donext_link(\ID_TEXT $content_type) : array
| package | core_fields |
|---|
\ID_TEXTContent type hook codename
arrayExtra do-next icon (single item array, or empty array if catalogues not installed)manage_custom_fields_entry_points(\ID_TEXT $content_type) : array
| package | core_fields |
|---|
\ID_TEXTContent type hook codename
arrayExtra get_entry_points dataoption_value_from_field_array(array $field, string $name, string $default = '') : string
| package | core_fields |
|---|
arrayField map
stringField name
stringField default value
stringThe valuesave_form_custom_fields(\ID_TEXT $content_type, \ID_TEXT $id, \?ID_TEXT $old_id = null)
| package | core_fields |
|---|
\ID_TEXTContent type hook codename
\ID_TEXTContent entry ID
\?ID_TEXTContent entry ID (prior to possible rename) (null: definitely unchanged)