## C.66. `$world->movehook`

Abstract

$world->movehook function: MOVEs a HOOK to another position

`void $world->movehook(` | `event` ,
| `name` ,
| `new_pos` `)`;

`void $world->movehook(` | `event` ,
| `number` ,
| `new_pos` `)`;

Moves the hook with the given name or number, connected to the given event, so that it occupies the position `new_pos` after execution of this function. Other hooks might be moved up or down in result of this. If `new_pos` is negative or greater than the number of hooks, the hook is moved to the last position.

If there are several hooks with the given name, only the first one found is moved.