Function __global->add_download_category

Definitions

sources/downloads2.php

  • Add a download category.
  • Is abstract?: No
  • Is static?: No
  • Is final?: No
  • Return: int

Parameters

Name Type Default Set Range Description
$category SHORT_TEXT required parameter N/A N/A The name of the download category
$parent_id ?AUTO_LINK required parameter N/A N/A The parent download category (null: this is a root category)
$description LONG_TEXT required parameter N/A N/A A description
$notes LONG_TEXT Blank (empty string) N/A N/A Hidden notes pertaining to this download category
$rep_image URLPATH Blank (empty string) N/A N/A The representative image for the category (blank: none)
$id ?AUTO_LINK Null N/A N/A Force an ID (null: don't force an ID)
$add_time ?TIME Null N/A N/A Add time (null: now)
$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)

Return

  • The ID of the newly added download category
  • Type: AUTO_LINK
  • Set: N/A
  • Range: N/A