public function plugin_types($config = array())
    {
        $config = new AnConfig($config);

        $config->append(array(
          'selected' => '',
          'name' => 'folder',
          'label' => '',
          'params' => array()
        ));

        $query = AnService::get('repos:settings.plugin')->getQuery();

        $query->order('name')->set('distinct', true);

        $config->folders = $query->fetchValues('folder');

        return $this->_render('plugin_types', $config);
    }