Functions

Contains filters are case sensitive
Namesort descending Location Description
drush_db_result includes/drush.inc A db_result() that works consistently for any version of Drupal.
drush_db_select includes/drush.inc A db_select() that works for any version of Drupal.
drush_delete_dir includes/drush.inc Deletes the provided file or folder and everything inside it.
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_directory_cache includes/environment.inc
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_docs_errorcodes commands/core/docs.drush.inc docs-error-codes command. Print a list of all error codes that can be found.
drush_download_file includes/drush.inc Download a file using wget, curl or file_get_contents, or via download cache.
drush_do_command_redispatch includes/drush.inc Redispatch the specified command using the same options that were passed to this invocation of drush.
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_site_command includes/drush.inc Run a command on the site specified by the provided command record.
drush_drupal_cache_clear_all includes/drush.inc
drush_drupal_login ./drush.php Log the given user in to a bootstrapped Drupal site.
drush_drupal_major_version includes/drush.inc Returns the Drupal major version number (5, 6, 7 ...)
drush_drupal_required_modules includes/environment.inc
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_enforce_requirement_bootstrap_phase includes/command.inc Check that a command is valid for the current bootstrap phase.
drush_enforce_requirement_core includes/command.inc Check that a command is valid for the current major version of core. Handles explicit version numbers and 'plus' numbers like 6+ (compatible with 6, 7 ...).
drush_enforce_requirement_drupal_dependencies includes/command.inc Check that a command has its declared dependencies available or have no dependencies.
drush_enforce_requirement_drush_dependencies includes/command.inc Check that a command has its declared drush dependencies available or have no dependencies. Drush dependencies are helpful when a command is invoking another command, or implementing its API.
drush_environment_check_os includes/environment.inc
drush_environment_table_inc includes/environment.inc
drush_errors_off includes/drush.inc Turn PHP error handling off.
drush_errors_on includes/drush.inc Turn PHP error handling on.
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_escapeshellarg includes/drush.inc Platform-independent version of escapeshellarg(). This only works for local commands. TODO: Make a unified drush_escapeshellarg that works on Linux and Windows.
drush_export_info includes/drush.inc Generate code friendly to the Drupal .info format from a structured array. Mostly copied from http://drupalcode.org/viewvc/drupal/contributions/modules/features/featu....
drush_export_ini includes/drush.inc Generate an .ini file. used by archive-dump."
drush_extension_check_incompatibility includes/environment.inc Test compatibility of a extension with version of drupal core and php.
drush_field_clone commands/core/field.drush.inc
drush_field_create commands/core/field.drush.inc
drush_field_create_wizard commands/core/field.drush.inc Prompt user enough to create basic field and instance.
drush_field_delete commands/core/field.drush.inc
drush_field_get_entity_from_bundle commands/core/field.drush.inc
drush_field_info commands/core/field.drush.inc
drush_field_ui_bundle_admin_path commands/core/field.drush.inc
drush_field_update commands/core/field.drush.inc
drush_filename_blacklist includes/command.inc Substrings to ignore during commandfile searching.
drush_file_not_empty includes/drush.inc Test to see if a file exists and is not empty
drush_find_drush includes/environment.inc Determine a proper way to call drush again
drush_find_empty_directories commands/pm/pm.drush.inc Return an array of empty directories.
drush_find_tmp includes/drush.inc Returns the path to a temporary directory.
drush_format_help_section includes/drush.inc Format one named help section from a command record
drush_format_size includes/drush.inc
drush_get_arguments includes/context.inc Get the arguments passed to the drush.php script.
drush_get_command includes/context.inc Return the command being executed.
drush_get_commandfile_for_command includes/command.inc Get the short commandfile name that matches the command.
drush_get_commands includes/command.inc Get a list of all implemented commands. This invokes hook_drush_command().
drush_get_context includes/context.inc Return a specific context, or the whole context cache
drush_get_context_options includes/context.inc Get all of the values for an option in every context.

Pages