public function languages($config = array())
    {
          $config = new AnConfig($config);
          $path = ANPATH_SITE.DS.'language';
          $languages = preg_grep('/^([^.])/', scandir($path));
          $options = array();

          foreach($languages as $language){
              $manifest = json_decode(file_get_contents($path.DS.$language.DS.$language.'.json'));
              $options[] = array(
                'name' => $manifest->name,
                'value' => $language
              );
          }

          $config->options = $options;

          return $this->formfield_select($config);
    }