original_string: function get_custom_fields_name () {
      $path = MF_PATH.'/field_types/*';
      $folders = glob($path,GLOB_ONLYDIR);
  
      $fields = array();
  
      foreach($folders as $folder) {
        $name = preg_match('/\/([\w\_]+)\_field$/i',$folder,$name_match);
        $fields[$name_match[1]] = preg_replace('/_/',' ',$name_match[1]);
      }
  
      return $fields;
    }
code: function get_custom_fields_name () {
      $path = MF_PATH.'/field_types/*';
      $folders = glob($path,GLOB_ONLYDIR);
  
      $fields = array();
  
      foreach($folders as $folder) {
        $name = preg_match('/\/([\w\_]+)\_field$/i',$folder,$name_match);
        $fields[$name_match[1]] = preg_replace('/_/',' ',$name_match[1]);
      }
  
      return $fields;
    }
code_tokens: function get_custom_fields_name ( ) { $ path = MF_PATH . '/field_types/*' ; $ folders = glob ( $ path , GLOB_ONLYDIR ) ; $ fields = array ( ) ; foreach ( $ folders as $ folder ) { $ name = preg_match ( '/\/([\w\_]+)\_field$/i' , $ folder , $ name_match ) ; $ fields [ $ name_match [ 1 ] ] = preg_replace ( '/_/' , ' ' , $ name_match [ 1 ] ) ; } return $ fields ; }
docstring: Get the list of custom fields
  
  @return array
docstring_tokens: Get the list of custom fields