Documentation

edit.php

Table of Contents

Functions

HookEmuEditEdithidefield()  : mixed
HookEmuEditEditbeforesectionhead()  : mixed
HookEmuAllAdditionalvalcheck()  : mixed
HookEmuEditSaveextraresourcedata()  : mixed
HookEmuEditAftersaveresourcedata()  : bool|array<string|int, mixed>
Emu plugin attaching to the 'aftersaveresourcedata' hook IMPORTANT: 'aftersaveresourcedata' hook is called from both save_resource_data() and save_resource_data_multi()!
HookEmuEditcopylockedfieldsaddfields()  : bool|array<string|int, mixed>
When uploading a batch of resources in upload then edit mode, locked fields are copied between resources in the batch.

Functions

HookEmuEditEdithidefield()

HookEmuEditEdithidefield(mixed $field) : mixed
Parameters
$field : mixed

HookEmuEditEditbeforesectionhead()

HookEmuEditEditbeforesectionhead() : mixed

HookEmuAllAdditionalvalcheck()

HookEmuAllAdditionalvalcheck(mixed $fields, mixed $fields_item) : mixed
Parameters
$fields : mixed
$fields_item : mixed

HookEmuEditSaveextraresourcedata()

HookEmuEditSaveextraresourcedata(mixed $list) : mixed
Parameters
$list : mixed

HookEmuEditAftersaveresourcedata()

Emu plugin attaching to the 'aftersaveresourcedata' hook IMPORTANT: 'aftersaveresourcedata' hook is called from both save_resource_data() and save_resource_data_multi()!

HookEmuEditAftersaveresourcedata() : bool|array<string|int, mixed>
Return values
bool|array<string|int, mixed>

Returns FALSE to show hook didn't run -OR- a list of errors. See hook 'aftersaveresourcedata' in resource_functions.php for more info.

HookEmuEditcopylockedfieldsaddfields()

When uploading a batch of resources in upload then edit mode, locked fields are copied between resources in the batch.

HookEmuEditcopylockedfieldsaddfields(array<string|int, mixed> $locked_fields, int $origin_resource) : bool|array<string|int, mixed>

If the EMu IRN field was locked and it contained a value, this function will add any fields mapped in the EMu plugin to the list of fields to copy. This allows the EMu data obtained for the first resource to be applied to all without making another call to EMu.

Parameters
$locked_fields : array<string|int, mixed>

Array of metadata field refs that were locked on edit page (values to apply to all uploads)

$origin_resource : int

Ref of resource to copy the locked field data from.

Return values
bool|array<string|int, mixed>

False if the EMu IRN field wasn't locked or has no value else array containing the updated list of locked fields (those supplied plus any mapped in the EMu plugin).

On this page

Search results