original_string: public static function get_available_field_types() {
          $fieldtypes = array();
  
          $plugins = \core\plugininfo\customfield::get_enabled_plugins();
          foreach ($plugins as $type => $unused) {
              $fieldtypes[$type] = get_string('pluginname', 'customfield_' . $type);
          }
          asort($fieldtypes);
  
          return $fieldtypes;
      }
code: public static function get_available_field_types() {
          $fieldtypes = array();
  
          $plugins = \core\plugininfo\customfield::get_enabled_plugins();
          foreach ($plugins as $type => $unused) {
              $fieldtypes[$type] = get_string('pluginname', 'customfield_' . $type);
          }
          asort($fieldtypes);
  
          return $fieldtypes;
      }
code_tokens: public static function get_available_field_types ( ) { $ fieldtypes = array ( ) ; $ plugins = \ core \ plugininfo \ customfield :: get_enabled_plugins ( ) ; foreach ( $ plugins as $ type => $ unused ) { $ fieldtypes [ $ type ] = get_string ( 'pluginname' , 'customfield_' . $ type ) ; } asort ( $ fieldtypes ) ; return $ fieldtypes ; }
docstring: Retrieve a list of all available custom field types
  
  @return   array   a list of the fieldtypes suitable to use in a select statement
docstring_tokens: Retrieve a list of all available custom field types