Functions

Contains filters are case sensitive
Namesort ascending Location Description
drush_is_local_host includes/environment.inc Make a determination whether or not the given host is local or not.
drush_is_command includes/command.inc
drush_invoke includes/command.inc Invoke drush api calls.
drush_include_engine includes/drush.inc Include the engine code for a specific named engine of a certain type.
drush_include includes/drush.inc Include a file, selecting a version specific file if available.
drush_hook_pre_COMMAND ./drush.api.php Run before a specific command executes. Logging an error stops command execution.
drush_hook_post_COMMAND ./drush.api.php Run after a specific command executes. Logging an error stops command execution.
drush_hook_COMMAND_validate ./drush.api.php Run before a specific command executes.
drush_hook_COMMAND ./drush.api.php Implementation of the actual drush command.
drush_help_html commands/core/core.drush.inc Return an HTML page documenting all available commands and global options.
drush_get_themes commands/core/drupal/environment_7.inc Get complete information for all available themes.
drush_get_themes commands/core/drupal/environment_6.inc Get complete information for all available themes.
drush_get_themes commands/core/drupal/environment_5.inc Get complete information for all available themes.
drush_get_project_status includes/environment.inc Calculate a project status based on current status and schema version.
drush_get_projects includes/environment.inc Get complete information for all available modules and themes.
drush_get_option_override includes/context.inc Get the value for an option, but first checks the provided option overrides.
drush_get_option_help includes/drush.inc Get the available options for Drush for use by help page.
drush_get_option includes/context.inc Get the value for an option.
drush_get_modules commands/core/drupal/environment_7.inc Get complete information for all available modules.
drush_get_modules commands/core/drupal/environment_6.inc Get complete information for all available modules.
drush_get_modules commands/core/drupal/environment_5.inc Get complete information for all available modules.
drush_get_merged_options includes/context.inc Retrieves a collapsed list of all options
drush_get_log includes/drush.inc Retrieve the log messages from the log history
drush_get_error_log includes/drush.inc Return the current list of errors that have occurred.
drush_get_error includes/drush.inc Return the current error handling status
drush_get_engines includes/drush.inc Return a structured array of engines of a specific type from commandfiles implementing hook_drush_engine_$type.
drush_get_context_options includes/context.inc Get all of the values for an option in every context.
drush_get_context includes/context.inc Return a specific context, or the whole context cache
drush_get_commands includes/command.inc Get a list of all implemented commands. This invokes hook_drush_command().
drush_get_command includes/context.inc Return the command being executed.
drush_get_arguments includes/context.inc Get the arguments passed to the drush.php script.
drush_format_size includes/drush.inc
drush_find_drush includes/environment.inc Determine a proper way to call drush again
drush_error_handler includes/environment.inc Log PHP errors to the Drush log. This is in effect until Drupal's error handler takes over.
drush_errors_on includes/drush.inc Turn PHP error handling on.
drush_errors_off includes/drush.inc Turn PHP error handling off.
drush_enforce_requirement_drupal_dependencies includes/command.inc Check that a command has its declared dependencies available or have no dependencies.
drush_enforce_requirement_core includes/command.inc Check that a command is valid for the current major version of core.
drush_enforce_requirement_bootstrap_phase includes/command.inc Check that a command is valid for the current bootstrap phase.
drush_drupal_version includes/drush.inc Detects the version number of the current Drupal installation, if any. Returns FALSE if there is no current Drupal installation, or it is somehow broken.
drush_drupal_major_version includes/drush.inc Returns the Drupal major version number (5, 6, 7 ...)
drush_drupal_login ./drush.php Log the given user in to a bootstrapped Drupal site.
drush_drupal_cache_clear_all includes/drush.inc
drush_do_site_command includes/drush.inc
drush_do_multiple_command includes/drush.inc Used by functions that operate on lists of sites, moving information from the source to the destination. Currenlty this includes 'drush rsync' and 'drush sql sync'.
drush_do_command_redispatch includes/drush.inc Redispatch the specified command using the same options that were passed to this invocation of drush.
drush_dispatch includes/drush.inc Dispatch a given set of commands. Modules can add commands by implementing hook_drush_command().
drush_die includes/drush.inc Exits with a message. In general, you should use drush_set_error() instead of this function. That lets drush proceed with other tasks. TODO: Exit with a correct status code.
drush_delete_dir includes/drush.inc Deletes the provided file or folder and everything inside it.
drush_db_select includes/drush.inc A db_select() that works for any version of Drupal.

Pages