Function Module_cms_galleries->get_form_fields

Definitions

cms/pages/modules/cms_galleries.php

  • Get Tempcode for an image adding/editing form.
  • Visibility: public
  • Is abstract?: No
  • Is static?: No
  • Is final?: No
  • Return: array

Parameters

Name Type Default Set Range Description
$id ?AUTO_LINK Null N/A N/A The ID of the image (null: new)
$title SHORT_TEXT Blank (empty string) N/A N/A The title
$cat ID_TEXT Blank (empty string) N/A N/A The gallery
$description LONG_TEXT Blank (empty string) N/A N/A The image description
$url URLPATH Blank (empty string) N/A N/A URL to the image
$validated BINARY 1 N/A N/A Image validation status
$allow_rating ?BINARY Null N/A N/A Whether rating is allowed (null: decide statistically, based on existing choices)
$allow_comments ?SHORT_INTEGER Null N/A N/A Whether comments are allowed (0=no, 1=yes, 2=review style) (null: decide statistically, based on existing choices)
$allow_trackbacks ?BINARY Null N/A N/A Whether trackbacks are allowed (null: decide statistically, based on existing choices)
$notes LONG_TEXT Blank (empty string) N/A N/A Notes for the image
$regions array [] N/A N/A The regions (empty: not region-limited)

Return

  • A pair: The input fields, Hidden fields
  • Type: array
  • Set: N/A
  • Range: N/A