Function __global->add_image

Definitions

sources/galleries2.php

  • Add an image to a specified gallery.
  • Is abstract?: No
  • Is static?: No
  • Is final?: No
  • Return: int

Parameters

Name Type Default Set Range Description
$title mixed required parameter N/A N/A Image title (either language string map or string)
$cat ID_TEXT required parameter N/A N/A The gallery name
$description mixed required parameter N/A N/A The image description (either language string map or string)
$url URLPATH required parameter N/A N/A The URL to the actual image
$validated BINARY required parameter N/A N/A Whether the image has been validated for display on the site
$allow_rating BINARY required parameter N/A N/A Whether the image may be rated
$allow_comments SHORT_INTEGER required parameter N/A N/A Whether the image may be commented upon
$allow_trackbacks BINARY required parameter N/A N/A Whether the image may be trackbacked
$notes LONG_TEXT required parameter N/A N/A Hidden notes associated with the image
$submitter ?MEMBER Null N/A N/A The submitter (null: current member)
$add_date ?TIME Null N/A N/A The time of adding (null: now)
$edit_date ?TIME Null N/A N/A The time of editing (null: never)
$views integer 0 N/A N/A The number of views
$id ?AUTO_LINK Null N/A N/A Force an ID (null: don't force an ID)
$meta_keywords ?SHORT_TEXT Blank (empty string) N/A N/A Meta keywords for this resource (null: do not edit) (blank: implicit)
$meta_description ?LONG_TEXT Blank (empty string) N/A N/A Meta description for this resource (null: do not edit) (blank: implicit)
$regions array [] N/A N/A The regions (empty: not region-limited)
$watermark boolean True N/A N/A Whether to apply watermarks to this image

Return

  • The ID of the new entry
  • Type: AUTO_LINK
  • Set: N/A
  • Range: N/A