297 if ($this->_mBlock->get(
'func_file') && $this->_mBlock->get(
'edit_func')) {
298 $func_file = XOOPS_MODULE_PATH .
'/' . $this->_mBlock->get(
'dirname') .
'/blocks/' . $this->_mBlock->get(
'func_file');
299 if (file_exists($func_file)) {
301 $edit_func = $this->_mBlock->get(
'edit_func');
303 $options = explode(
'|', $this->_mBlock->get(
'options'));
305 if (function_exists($edit_func)) {
309 $root =& XCube_Root::getSingleton();
310 $langManager =& $root->getLanguageManager();
311 $langManager->loadBlockMessageCatalog($this->_mBlock->get(
'dirname'));
313 return call_user_func($edit_func, $options);
321 if ($this->_mBlock->get(
'options')) {
322 $root =& XCube_Root::getSingleton();
323 $textFilter =& $root->getTextFilter();
326 $options = explode(
'|', $this->_mBlock->get(
'options'));
327 foreach ($options as $val) {
328 $val = $textFilter->ToEdit($val);
329 $buf .=
"<input type='hidden' name='options[]' value='{$val}'>";