/** * Adds only valid skeleton names to the available choices. */ protected function setupProperties() { parent::setupProperties(); $finder = new SkeletonFinder(); $this->choices = array(); foreach ($finder->findAll() as $skeleton_path) { $this->choices[] = $skeleton_path->getFilename(); } }