original_string: public function get_profile_fields() {
          global $DB;
          if (!$fields = $DB->get_records('user_info_field', null, 'shortname', 'id,shortname')) {
              return null;
          }
          $res = array(0 => get_string('anyfield', 'filters'));
          foreach ($fields as $k => $v) {
              $res[$k] = $v->shortname;
          }
          return $res;
      }
code: public function get_profile_fields() {
          global $DB;
          if (!$fields = $DB->get_records('user_info_field', null, 'shortname', 'id,shortname')) {
              return null;
          }
          $res = array(0 => get_string('anyfield', 'filters'));
          foreach ($fields as $k => $v) {
              $res[$k] = $v->shortname;
          }
          return $res;
      }
code_tokens: public function get_profile_fields ( ) { global $ DB ; if ( ! $ fields = $ DB -> get_records ( 'user_info_field' , null , 'shortname' , 'id,shortname' ) ) { return null ; } $ res = array ( 0 => get_string ( 'anyfield' , 'filters' ) ) ; foreach ( $ fields as $ k => $ v ) { $ res [ $ k ] = $ v -> shortname ; } return $ res ; }
docstring: Returns an array of custom profile fields
  @return array of profile fields
docstring_tokens: Returns an array of custom profile fields