| 199 | Only the directory configuration is passed to the callback. If it needed to update the server configuration instead (i.e. for {{{ParrotPostConfig}}}), it would call {{{ModParrot;Apache;get_config}}}, which has the following signature: |
| 200 | |
| 201 | {{{PMC get_config(STRING module_name, PMC per_dir_config)}}} |
| 202 | |
| 203 | If {{{per_dir_config}}} is omitted, it will return the server configuration. |
| 204 | |
| 205 | ''Example: The {{{ParrotPostConfig}}} directive callback'' |
| 206 | |
| 207 | {{{ |
| 208 | .sub cmd_parrotpostconfighandler |
| 209 | .param pmc mconfig |
| 210 | .param pmc args |
| 211 | .local pmc cfg, get_config |
| 212 | |
| 213 | get_config = get_hll_global ['ModParrot'; 'Apache'; 'Module'], 'get_config' |
| 214 | cfg = get_config('modparrot_pir_module') |
| 215 | $S0 = args[0] |
| 216 | cfg['post_config_handler'] = $S0 |
| 217 | .end |
| 218 | }}} |
| 219 | |