recallObject('kMultiLanguage'); switch($info_type) { case 'module_name': return 'in-commerce'; break; case 'review_section': return 'in-commerce:editproduct_review'; break; case 'rel_list': // Edit Category -> Relations List return Array( 'MainTable' => 'Products', 'ItemNameField' => $lang->LangFieldName('Name'), 'ItemNamePhrase' => 'la_Text_Product', 'TargetType' => 11, 'EditFile'=>'index.php', 'EnvIDField'=>'id'); break; case 'summary_pending': global $rootURL; //$imagesURL = $rootURL.p_GetModuleInfo('module_name').'/admin/images'; // don't globalize $application =& kApplication::Instance(); $module_path = $application->getUnitOption('ord', 'ModuleFolder'); $imagesURL = $application->BaseURL('/'.$module_path.'/admin_templates/img'); // don't globalize $ret = Array(); $ret[] = Array( 'link' => $application->HREF('in-commerce/orders/orders_pending_list','',Array(),'index.php'), 'icon_image' => $imagesURL.'/itemicons/icon16_orders.gif', 'phrase' => 'la_title_Orders', 'list_var_name' => 'kernel4:ord'); return $ret; break; case 'all_bitmask': // return bitmask value equals to "all" for module filter return Array('VarName' => 'Link_View', 'Bits' => 127); break; case 'dupe_resourceids': $ret = Array(); $ret[] = Array('Table'=>'Products','IDField'=>'ProductId'); return $ret; case 'catalog_template': return 'in-commerce/products/products_catalog'; break; case 'advanced_view_template': return 'in-commerce/products/products_advanced_view'; break; case 'reviews_template': return 'in-commerce/products/products_reviews_section'; break; case 'relations_template': return 'in-commerce/products/products_select'; break; case 'filenames': return Array('prefix' => 'p', 'table' => 'Products', 'id_field' => 'ProductId', 'title_field' => 'l1_Name'); break; } return false; } ?>