Functions

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/policy.drush.inc Implement of drush_hook_COMMAND_validate().
drush_policy_updatedb_validate examples/policy.drush.inc Implement of drush_hook_COMMAND_validate().
drush_policy_make_me_a_sandwich_validate examples/policy.drush.inc Implementation of drush_hook_COMMAND_validate().
sandwich_drush_command examples/sandwich.drush.inc Implementation of hook_drush_command().
sandwich_drush_help examples/sandwich.drush.inc Implementation of hook_drush_help().
drush_sandwich_make_me_a_sandwich_validate examples/sandwich.drush.inc Implementation of drush_hook_COMMAND_validate().
drush_sandwich_make_me_a_sandwich examples/sandwich.drush.inc Example drush command callback. This is where the action takes place.
xkcd_drush_command examples/xkcd.drush.inc Implementation of hook_drush_command().
xkcd_drush_help examples/xkcd.drush.inc Implementation of hook_drush_help().
drush_xkcd_fetch examples/xkcd.drush.inc Example drush command callback. This is where the action takes place.
drush_xkcd_display examples/xkcd.drush.inc 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/backend.inc
drush_backend_get_result includes/backend.inc Retrieves the results from the last call to backend_invoke.
drush_backend_output includes/backend.inc
drush_backend_parse_output includes/backend.inc Parse output returned from a Drush command.
_drush_backend_integrate includes/backend.inc Integrate log messages and error statuses into the current process.
_drush_proc_open includes/backend.inc Call an external command using proc_open.
drush_backend_invoke includes/backend.inc Invoke a drush backend command.
drush_backend_invoke_args includes/backend.inc A variant of drush_backend_invoke() which specifies command and arguments separately.
drush_backend_invoke_sitealias includes/backend.inc Execute a new local or remote command in a new process.
_drush_backend_invoke includes/backend.inc Create a new pipe with proc_open, and attempt to parse the output.
_drush_backend_generate_command includes/backend.inc Generate a command to execute.
_drush_backend_generate_command_sitealias includes/backend.inc Generate a command to execute.
drush_backend_fork includes/backend.inc A small utility function to call a drush command in the background.
_drush_backend_argument_string includes/backend.inc Map the options to a string containing all the possible arguments and options.
_drush_escape_option includes/backend.inc Return a properly formatted and escaped command line option
_drush_backend_get_stdin includes/backend.inc Read options fron STDIN during POST requests.
drush_backend_batch_process includes/batch.inc Process a Drupal batch by spawning multiple Drush processes.
drush_batch_command includes/batch.inc Process sets from the specified batch.
drush_invoke includes/command.inc Invoke drush api calls.
drush_invoke_args includes/command.inc As drush_invoke, but args are passed in as an array rather than as individual function parameters.
_drush_invoke_args includes/command.inc 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/command.inc 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/command.inc Invoke a command in a new process, targeting the site specified by the provided site alias record.
drush_invoke_process_args includes/command.inc Invoke a command in a new process.
drush_invoke_sitealias includes/command.inc Invoke a command in a new process, targeting the site specified by the provided site alias record.
drush_invoke_sitealias_args includes/command.inc Invoke a command in a new process, targeting the site specified by the provided site alias record.
drush_redispatch_get_options includes/command.inc Get the options that were passed to the current command.
drush_parse_args includes/command.inc Parse console arguments.
drush_get_commandfile_for_command includes/command.inc Get the short commandfile name that matches the command.

Pages