Function Module_cms_catalogues->get_form_fields

Definitions

cms/pages/modules/cms_catalogues.php

  • Get Tempcode for a catalogue entry adding/editing form.
  • Visibility: public
  • Is abstract?: No
  • Is static?: No
  • Is final?: No
  • Return: N/A

Parameters

Name Type Default Set Range Description
$catalogue_name ?ID_TEXT Null N/A N/A The catalogue for the entry (null: detect)
$category_id ?AUTO_LINK Null N/A N/A The category for the entry (null: first)
$validated BINARY 1 N/A N/A Whether the entry is validated
$notes LONG_TEXT Blank (empty string) N/A N/A Staff notes
$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)
$id ?AUTO_LINK Null N/A N/A The ID of the entry (null: not yet added)

Return

  • Either Tempcode; or a tuple of: (fields, hidden-fields[, delete-fields][, edit-text][, whether all delete fields are specified][, posting form text, more fields][, parsed WYSIWYG editable text])
  • Type: mixed
  • Set: N/A
  • Range: N/A