edit.php
Table of Contents
Functions
- HookTms_linkEditEditbeforesectionhead() : mixed
- HookTMS_linkEditEdithidefield() : mixed
- HookTms_linkAllAdditionalvalcheck() : mixed
- HookTms_linkEditAftersaveresourcedata() : array<string|int, mixed>|bool
- TMS plugin implementing the 'aftersaveresourcedata' hook IMPORTANT: 'aftersaveresourcedata' hook is called from both save_resource_data() and save_resource_data_multi()!
Functions
HookTms_linkEditEditbeforesectionhead()
HookTms_linkEditEditbeforesectionhead() : mixed
HookTMS_linkEditEdithidefield()
HookTMS_linkEditEdithidefield(mixed $field) : mixed
Parameters
- $field : mixed
HookTms_linkAllAdditionalvalcheck()
HookTms_linkAllAdditionalvalcheck(mixed $fields, mixed $fieldsitem) : mixed
Parameters
- $fields : mixed
- $fieldsitem : mixed
HookTms_linkEditAftersaveresourcedata()
TMS plugin implementing the 'aftersaveresourcedata' hook IMPORTANT: 'aftersaveresourcedata' hook is called from both save_resource_data() and save_resource_data_multi()!
HookTms_linkEditAftersaveresourcedata(int|array<string|int, mixed> $R, mixed $nodes_to_add, mixed $nodes_to_remove, mixed $autosave_field, array<string|int, mixed> $fields, array<string|int, mixed> $updated_resources) : array<string|int, mixed>|bool
Parameters
- $R : int|array<string|int, mixed>
-
Generic type for resource ID(s). It will be a resource ref when hook is called from save_resource_data() -OR- a list of resource IDs when called from save_resource_data_multi().
- $nodes_to_add : mixed
- $nodes_to_remove : mixed
- $autosave_field : mixed
- $fields : array<string|int, mixed>
-
List of fields that was submitted with the request (contains stale data)
- $updated_resources : array<string|int, mixed>
-
Map of field changes for each resource (if applicable)
Return values
array<string|int, mixed>|bool —Returns bool to show whether the hook ran or not -or- list of errors. See hook 'aftersaveresourcedata' in resource_functions.php for more info