function hook_drush_init

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

Take action before any command is run.

Logging an error stops command execution.

2 functions implement hook_drush_init()

Note: this list is generated by pattern matching, so it may include some functions that are not actually implementations of this hook.

unit_drush_init in tests/unit.drush.inc
xh_drush_init in commands/xh.drush.inc
Implements hook_drush_init().

File

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

Code

function hook_drush_init() {

}