Contains filters are case sensitive
Name Locationsort descending Description
hook_drush_sql_sync_sanitize docs/drush.api.php Sql-sync sanitization example. This is equivalent to the built-in --sanitize option of sql-sync, but simplified to only work with default values on Drupal 6 + mysql.
drush_hook_pre_site_upgrade_prepare docs/drush.api.php Take action before modules are disabled in a major upgrade. Note that when this hook fires, it will be operating on a copy of the database.
hook_drush_help_alter docs/drush.api.php Add help components to a command
hook_drush_cache_clear docs/drush.api.php Add/edit options to cache-clear command
hook_cli_bashrc docs/drush.api.php
drush_verify_cli ./drush.php Verify that we are running PHP through the command line interface.
drush_main ./drush.php The main Drush function.
drush_shutdown ./drush.php Shutdown function for use while Drupal is bootstrapping and to return any registered errors.
drush_return_status ./drush.php
drush_drupal_login ./drush.php Log the given user in to a bootstrapped Drupal site.
drush_policy_sql_sync_validate examples/ Implement of drush_hook_COMMAND_validate().
drush_policy_updatedb_validate examples/ Implement of drush_hook_COMMAND_validate().
drush_policy_make_me_a_sandwich_validate examples/ Implementation of drush_hook_COMMAND_validate().
sandwich_drush_command examples/ Implementation of hook_drush_command().
sandwich_drush_help examples/ Implementation of hook_drush_help().
drush_sandwich_make_me_a_sandwich_validate examples/ Implementation of drush_hook_COMMAND_validate().
drush_sandwich_make_me_a_sandwich examples/ Example drush command callback. This is where the action takes place.
xkcd_drush_command examples/ Implementation of hook_drush_command().
xkcd_drush_help examples/ Implementation of hook_drush_help().
drush_xkcd_fetch examples/ Example drush command callback. This is where the action takes place.
drush_xkcd_display examples/ Retrieve and display a table of metadata for an XKCD cartoon, then retrieve and display the cartoon using a specified image viewer.
drush_backend_set_result includes/
drush_backend_get_result includes/ Retrieves the results from the last call to backend_invoke.
drush_backend_output includes/
drush_backend_parse_output includes/ Parse output returned from a Drush command.
_drush_backend_integrate includes/ Integrate log messages and error statuses into the current process.
_drush_proc_open includes/ Call an external command using proc_open.
drush_backend_invoke includes/ Invoke a drush backend command.
drush_backend_invoke_args includes/ A variant of drush_backend_invoke() which specifies command and arguments separately.
drush_backend_invoke_sitealias includes/ Execute a new local or remote command in a new process.
_drush_backend_invoke includes/ Create a new pipe with proc_open, and attempt to parse the output.
_drush_backend_generate_command includes/ Generate a command to execute.
_drush_backend_generate_command_sitealias includes/ Generate a command to execute.
drush_backend_fork includes/ A small utility function to call a drush command in the background.
_drush_backend_argument_string includes/ Map the options to a string containing all the possible arguments and options.
_drush_escape_option includes/ Return a properly formatted and escaped command line option
_drush_backend_get_stdin includes/ Read options fron STDIN during POST requests.
drush_backend_batch_process includes/ Process a Drupal batch by spawning multiple Drush processes.
drush_batch_command includes/ Process sets from the specified batch.
drush_invoke includes/ Invoke drush api calls.
drush_invoke_args includes/ As drush_invoke, but args are passed in as an array rather than as individual function parameters.
_drush_invoke_args includes/ Variant of drush_invoke_args that allows the commandfile to be specified correctly; this allows the hook functions to be correctly determined for commands that provide a 'callback' function.
drush_dispatch includes/ Given a command record, dispatch it as if it were the original command. Executes in the currently bootstrapped site using the current option contexts. Note that drush_dispatch will not bootstrap any further than the current command has already…
drush_invoke_process includes/ Invoke a command in a new process, targeting the site specified by the provided site alias record.
drush_invoke_process_args includes/ Invoke a command in a new process.
drush_invoke_sitealias includes/ Invoke a command in a new process, targeting the site specified by the provided site alias record.
drush_invoke_sitealias_args includes/ Invoke a command in a new process, targeting the site specified by the provided site alias record.
drush_redispatch_get_options includes/ Get the options that were passed to the current command.
drush_parse_args includes/ Parse console arguments.
drush_get_commandfile_for_command includes/ Get the short commandfile name that matches the command.