C4::NewsChannels - Functions to manage OPAC and intranet news
This module provides the functions needed to mange OPAC and intranet news.
$retval = add_opac_new($hashref); $hashref should contains all the fields found in opac_news, except idnew. The idnew field is auto-generated.
$retval = upd_opac_new($hashref); $hashref should contains all the fields found in opac_news, including idnew, since it is the key for the SQL UPDATE.
$news = &GetNewsToDisplay($lang,$branch); C<$news> is a ref to an array which containts all news with expirationdate > today or expirationdate is null that is applicable for a given branch.
TG