Function Module_cms_downloads->get_form_fields

Definitions

cms/pages/modules/cms_downloads.php

  • Get Tempcode for a download 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 download (null: new)
$name SHORT_TEXT Blank (empty string) N/A N/A The name of the download
$category_id ?AUTO_LINK Null N/A N/A The download category (null: first)
$url URLPATH Blank (empty string) N/A N/A The URL for the downloadable file
$author SHORT_TEXT Blank (empty string) N/A N/A The name of the author
$description LONG_TEXT Blank (empty string) N/A N/A Description for the download
$additional_details LONG_TEXT Blank (empty string) N/A N/A Supplementary description for the download
$out_mode_id ?AUTO_LINK Null N/A N/A The ID of the download this download is out-modeing (null: none)
$validated BINARY 1 N/A N/A Whether the download is validated
$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
$file_size ?integer Null N/A N/A The file size (null: not added yet therefore unknown)
$cost integer 0 N/A N/A The point cost of the download
$submitter_gets_points BINARY 1 N/A N/A Whether the submitter gets the point cost
$original_filename ?SHORT_TEXT Null N/A N/A The original file name for the file (we can't rely on the one on disk) (null: not added yet therefore unknown)
$licence ?AUTO_LINK Null N/A N/A The licence to use (null: none)
$default_pic integer 1 N/A N/A Which image to use for the downloads representative image (counts from 1)
$url_redirect URLPATH Blank (empty string) N/A N/A The URL to redirect

Return

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