function KUserDefinedField($row, &$page, &$siblings) { global $FUNCS; // udf params $custom_params = $row['custom_params']; if (strlen($custom_params)) { $arr_params = $FUNCS->unserialize($custom_params); if (is_array($arr_params) && count($arr_params)) { foreach ($arr_params as $k => $v) { $this->{$k} = $v; } } } // call parent parent::KField($row, $page, $siblings); if (!$FUNCS->is_core_type($this->k_type)) { $this->udf = 1; } }