protected function form($config) { parent::form($config); $type = isset($config['type']) ? $config['type'] : 'video'; ?> <p> <label><input type="radio" name="type" value="video" <?php if ($type == 'video') { echo 'checked="checked"'; } ?> /> vídeo </label> <label><input type="radio" name="type" value="gallery" <?php if ($type == 'gallery') { echo 'checked="checked"'; } ?> /> galeria </label> </p> <?php }