NumItems(); if($news_count == 0) return ''; $o = ''; foreach($objArticleList->Items as $news) $o.= $news->AdminParseTemplate($template); return $o; } function n_GetModuleInfo($info_type) { // get information for building sql in switch($info_type) { case 'module_name': return 'in-news'; break; case 'review_section': return 'in-news:editarticle_review'; break; case 'rel_list': // Edit Category -> Relations List return Array( 'MainTable' => 'News', 'ItemNameField' => 'Title', 'ItemNamePhrase' => 'la_Text_Article', 'TargetType' => 2, 'EditFile'=>'addarticle.php','EnvIDField'=>'id'); break; case 'summary_pending': global $rootURL; $imagesURL = $rootURL.n_GetModuleInfo('module_name').'/admin/images'; // don't globalize $ret = Array(); $ret[] = Array( 'link' => "PendingLink('news','News_View',943)", 'icon_image' => $imagesURL.'/icon16_article_pending.gif', 'phrase' => 'la_Text_Articles', 'list_var_name' => 'objArticleList'); return $ret; break; case 'all_bitmask': // return bitmask value equals to "all" for module filter return Array('VarName' => 'News_View', 'Bits' => 1023); break; case 'dupe_resourceids': $ret=Array(); $ret[]=Array('Table'=>'News','IDField'=>'NewsId'); return $ret; break; case 'filenames': return Array('prefix' => 'n', 'table' => 'News', 'id_field' => 'NewsId', 'title_field' => 'Title'); break; } return false; } ?>