| 151 | The directive hashes should be stored in an array for use during module registration. |
| 152 | |
| 153 | ''Example: The {{{ParrotHandler}}} definition from the PIR HLL module'' |
| 154 | |
| 155 | {{{ |
| 156 | .local pmc ap_const |
| 157 | .local pmc cmd |
| 158 | |
| 159 | ap_const = get_root_global ['ModParrot'; 'Apache'; 'Constants'], 'table' |
| 160 | |
| 161 | cmd = new 'Hash' |
| 162 | $P0 = new 'String' |
| 163 | $P0 = 'ParrotHandler' |
| 164 | cmd['name'] = $P0 |
| 165 | $P0 = new 'Integer' |
| 166 | $P0 = ap_const['TAKE1'] |
| 167 | cmd['args_how'] = $P0 |
| 168 | cmd['func'] = cmd_parrothandler |
| 169 | $P0 = new 'Integer' |
| 170 | $P0 = ap_const['OR_AUTHCFG'] |
| 171 | cmd['req_override'] = $P0 |
| 172 | $P0 = new 'String' |
| 173 | $P0 = 'usage: ParrotHeaderParserHandler handler-name' |
| 174 | cmd['errmsg'] = $P0 |
| 175 | }}} |