Function Module_cms_galleries_cat->get_form_fields

Definitions

cms/pages/modules/cms_galleries.php

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

Parameters

Name Type Default Set Range Description
$name ID_TEXT Blank (empty string) N/A N/A The gallery codename (blank: new)
$fullname SHORT_TEXT Blank (empty string) N/A N/A The full human-readable name of the gallery
$description LONG_TEXT Blank (empty string) N/A N/A The description of the gallery
$notes LONG_TEXT Blank (empty string) N/A N/A Hidden notes associated with the gallery
$parent_id ID_TEXT Blank (empty string) N/A N/A The parent gallery (blank: no parent)
$accept_images ?BINARY Null N/A N/A Whether images may be put in this gallery (null: work out statistically)
$accept_videos ?BINARY Null N/A N/A Whether videos may be put in this gallery (null: work out statistically)
$is_member_synched BINARY 0 N/A N/A Whether the gallery serves as a container for automatically created member galleries
$layout_mode ?ID_TEXT Null N/A N/A Whether the gallery uses the grid, carousel or mosaic layout mode (null: pick statistically based on current usage of other galleries)
$rep_image ?URLPATH Null N/A N/A The representative image of the gallery (null: none)
$watermark_top_left ?URLPATH Null N/A N/A Watermark (null: none)
$watermark_top_right ?URLPATH Null N/A N/A Watermark (null: none)
$watermark_bottom_left ?URLPATH Null N/A N/A Watermark (null: none)
$watermark_bottom_right ?URLPATH Null N/A N/A Watermark (null: none)
$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)
$gallery_sort ?SHORT_TEXT Null N/A N/A The sort order for sub-galleries (null: use site default)
$media_sort ?SHORT_TEXT Null N/A N/A The sort order for media within the gallery (null: use site default)

Return

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