Index: branches/unlabeled/unlabeled-1.24.2/core/units/admin/admin_tag_processor.php =================================================================== diff -u -r5715 -r5814 --- branches/unlabeled/unlabeled-1.24.2/core/units/admin/admin_tag_processor.php (.../admin_tag_processor.php) (revision 5715) +++ branches/unlabeled/unlabeled-1.24.2/core/units/admin/admin_tag_processor.php (.../admin_tag_processor.php) (revision 5814) @@ -376,6 +376,47 @@ return $oFCKeditor->CreateHtml(); } + + /** + * Allows to construct link for opening any type of catalog item selector + * + * @param Array $params + * @return string + */ + function SelectorLink($params) + { + $params['t'] = 'item_selector/item_selector_'.$params['mode']; + + $default_params = Array('no_amp' => 1, 'pass' => 'all,'.$params['prefix']); + unset($params['prefix']); + + $pass_through = Array(); + if (isset($params['tabs_dependant'])) { // {yes, no} + $pass_through['td'] = $params['tabs_dependant']; + unset($params['tabs_dependant']); + } + + if (isset($params['selection_mode'])) { // {single, multi} + $pass_through['tm'] = $params['selection_mode']; + unset($params['selection_mode']); + } + + if (isset($params['tab_prefixes'])) { // {all, none, Application->ProcessParsedTag('m', 't', $params); + } } ?> \ No newline at end of file