function drush_hook_COMMAND

8.0.x drush.api.php drush_hook_COMMAND()
6.x drush.api.php drush_hook_COMMAND()
7.x drush.api.php drush_hook_COMMAND()
3.x drush.api.php drush_hook_COMMAND()
4.x drush.api.php drush_hook_COMMAND()
5.x drush.api.php drush_hook_COMMAND()
master drush.api.php drush_hook_COMMAND()

Implementation of the actual drush command.

This is where most of the stuff should happen.

Logging an error stops command execution, and the rollback function (if any) for each hook implementation is invoked, in addition to pre and validate rollbacks.

Return value

The return value will be passed along to the caller if --backend option is present. A boolean FALSE indicates failure and rollback will be intitated.

See also

drush_hook_COMMAND_rollback()

drush_hook_pre_COMMAND_rollback()

drush_hook_COMMAND_validate_rollback()

File

docs/drush.api.php, line 167
Documentation of the Drush API.

Code

function drush_hook_COMMAND() {

}