Deletes a block from a news article. If the block contains attachments, those are deleted too. If the block is the last block of the article, then the article itself is deleted.
array getImages(
integer
$id_news_item, text
$object_name, text
$object_mime, text
$how_to_show)
Returns an array of zero, one or two elements with filenames of images to be shown according to the parameters passed. This function may be used as a static method.
Tags:
return:
index array with the name of the image to show in position 0 and how to show the popup in position 1 (I, R, O)
Parameters:
integer
$id_news_item
the news article id
text
$object_name
object base name
text
$object_mime
object mime type (if not an image returns an empty array)
Gets the list of news topics. Only the topics allowed to the current user are returned.
Tags:
return:
an indexed array with records containing the following information 0=id_news_cat, 1=ord, 2=ordby, 3=restricted (y/n) (lowercase char, not boolean), 4=page_size, title=topic title, body=topic description, page_size = page size to be displayed (has "No paging" instead of 0), restricted=restricted flag to be displayed (has translated "Yes", "No" instead of y/n)