function block_setting($blockclass, $script, $values = array()) { global $_G; $return = array(); $obj = block_script($blockclass, $script); if (!is_object($obj)) { return $return; } return block_makeform($obj->getsetting(), $values); }
function block_setting($script, $values = array()) { global $_G; $return = array(); if (!($obj = block_script($script))) { return $return; } return block_makeform($obj->getsetting(), $values); }