Function __global->add_news_category

Definitions

sources/news2.php

  • Add a news category of the specified details.
  • Is abstract?: No
  • Is static?: No
  • Is final?: No
  • Return: int

Parameters

Name Type Default Set Range Description
$title SHORT_TEXT required parameter N/A N/A The news category title
$img ID_TEXT icons/news/general N/A N/A The theme image ID of the picture to use for the news category
$notes LONG_TEXT Blank (empty string) N/A N/A Notes for the news category
$owner ?MEMBER Null N/A N/A The owner (null: public)
$id ?AUTO_LINK Null N/A N/A Force an ID (null: don't force an ID)

Return

  • The ID of our new news category
  • Type: AUTO_LINK
  • Set: N/A
  • Range: N/A