public function form($instance)
{
$this->store_data = $instance;
$custom_fields = array();
foreach ($this->custom_fields as $field) {
$tmp_field = clone $field;
$tmp_field->load();
$field_name = $this->get_field_name($tmp_field->get_name());
$tmp_field->set_name($field_name);
$custom_fields[] = $tmp_field;
}
Container::factory('widget', $this->id)->add_fields($custom_fields)->init();
}