Function Hook_task_import_gallery_media->run
Definitions
sources/hooks/systems/tasks/import_gallery_media.php
- Run the task hook.
- Visibility: public
- Is abstract?: No
- Is static?: No
- Is final?: No
- Return: array
Parameters
Name | Type | Default | Set | Range | Description |
---|---|---|---|---|---|
$files | array | required parameter | N/A | N/A | Array of tempURL => filename files to process |
$member_id | MEMBER | required parameter | N/A | N/A | ID of the member who initiated the mass import |
$cat | ID_TEXT | required parameter | N/A | N/A | Gallery to import into |
$set_title | string | required parameter | N/A | N/A | The title to prepend to every image/video |
$allow_rating | integer | required parameter | N/A | N/A | Post param indicating whether or not ratings should be allowed |
$allow_comments_reviews | integer | required parameter | N/A | N/A | Post param combination indicating whether to allow comments or reviews |
$allow_trackbacks | integer | required parameter | N/A | N/A | Post param indicating whether or not to allow trackbacks |
$watermark | boolean | required parameter | N/A | N/A | Whether or not to apply the gallery's watermarks to the file if it is an image |
$notes | string | required parameter | N/A | N/A | Staff notes provided for this entry |
$privacy_level | ID_TEXT | required parameter | N/A | N/A | Level of privacy set for this content |
$additional_access | array | required parameter | N/A | N/A | Array of additional members who should have access to this content |
Return
- A tuple of at least 2: Return mime-type, content (either Tempcode, or a string, or a filename and file-path pair to a temporary file), map of HTTP headers if transferring immediately, map of ini_set commands if transferring immediately (null: show standard success message)
- Type: ?array
- Set: N/A
- Range: N/A