Skip to main content

commands

Discworld driver help

commands

Name

commands() - returns some information about actions the user can take

Synopsis

mixed *commands( void );

Description

Returns an array of an array of 4 items describing the actions that are available to this_object(). The first item is the command itself (as passed to add_action()). The second is the priority (passed to add_action as the third argument, often defaulted to 0). The third is the object that defined the action. The fourth is the function to be called ("<function>" if it is a function pointer).

See also

add_action(), enable_commands(), disable_commands()