# nats\_dump\_data

Alias: dump\_data

## Parameters

(*Required parameters in **bold**)*

| Parameter                                                                                                                         | Description                                  | Possible Values                                                                                 | Default Value                           | Example                              |
| --------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------- | ----------------------------------------------------------------------------------------------- | --------------------------------------- | ------------------------------------ |
| [tpl](https://docs.toomuchmedia.com/nats-admin/skins-and-templates/further-reading/template-function-parameters/tpl)              | Template used to display output              | Any valid template                                                                              | The template, function\_dump\_data\_xml | tpl="my\_template"                   |
| no\_form\_vars                                                                                                                    | Don't use any variables from the form        | 1                                                                                               | None. (Uses form variables)             | no\_form\_vars="1"                   |
| dump\_array                                                                                                                       | Array to store the dump                      | Any valid Smarty array containing only lowercase letters, numbers, underscores, or spaces       | stats                                   | dump\_array="my\_array"              |
| function                                                                                                                          | The function used to get the dump            | Any valid NATS function name containing only lowercase letters, numbers, underscores, or spaces | display\_stats                          | function="display\_stats\_referrals" |
| [data\_only](https://docs.toomuchmedia.com/nats-admin/skins-and-templates/further-reading/template-function-parameters/data_only) | Set variables but don't display the template | 1                                                                                               | *None.* The template is displayed.      | data\_only=1                         |

## Output

Displays the statistics using the function\_dump\_data\_xml template. Also stores data in the {$stats} array or whatever array you specified with the dump\_array parameter.
