NumItems(); if($topic_count == 0) return ''; $o = ''; foreach($objTopicList->Items as $t) $o.= $t->AdminParseTemplate($template); return $o; } function bb_GetModuleInfo($info_type) { // get information for building sql in switch($info_type) { case 'module_name': return 'in-bulletin'; break; case 'review_section': return 'in-bulletin:edittopic_review'; break; case 'rel_list': // Edit Category -> Relations List return Array( 'MainTable' => 'Topic', 'ItemNameField' => 'TopicText', 'ItemNamePhrase' => 'la_Text_Topic', 'TargetType' => 3, 'EditFile'=>'addtopic.php','EnvIDField'=>'top'); break; case 'summary_pending': global $rootURL; $imagesURL = $rootURL.bb_GetModuleInfo('module_name').'/admin/images'; // don't globalize $ret = Array(); $ret[] = Array( 'link' => "PendingLink('topics','Topic_View',47)", 'icon_image' => $imagesURL.'/icon16_topic_pending.gif', 'phrase' => 'la_Text_Topics', 'list_var_name' => 'objTopicList'); return $ret; break; case 'all_bitmask': // return bitmask value equals to "all" for module filter return Array('VarName' => 'Topic_View', 'Bits' => 127); break; case 'dupe_resourceids': $ret=Array(); $ret[]=Array('Table'=>'Topic','IDField'=>'TopicId'); return $ret; break; case 'filenames': return Array('prefix' => 'bb', 'table' => 'Topic', 'id_field' => 'TopicId', 'title_field' => 'TopicText'); break; } return false; } ?>