Functions

Contains filters are case sensitive
Name Locationsort descending Description
drush_redispatch_get_options includes/drush.inc Get the options for this command.
drush_log includes/drush.inc Add a log message to the log history.
drush_get_log includes/drush.inc Retrieve the log messages from the log history
dlm includes/drush.inc Run print_r on a variable and log the output.
drush_pipe_output includes/drush.inc
_drush_print_log includes/drush.inc Display the log message
drush_print_timers includes/drush.inc
_drush_log_drupal_messages includes/drush.inc Turn drupal_set_message errors into drush_log errors
drush_format_size includes/drush.inc
system_watchdog includes/drush.inc Log Drupal watchdog() calls.
_drush_log_update_sql includes/drush.inc Log the return value of Drupal hook_update_n functions.
drush_set_error includes/drush.inc Set an error code for the error handling system.
drush_get_error includes/drush.inc Return the current error handling status
drush_get_error_log includes/drush.inc Return the current list of errors that have occurred.
drush_cmp_error includes/drush.inc Check if a specific error status has been set.
drush_errors_off includes/drush.inc Turn PHP error handling off.
drush_errors_on includes/drush.inc Turn PHP error handling on.
drush_memory_limit includes/drush.inc Get the PHP memory_limit value in bytes.
drush_unset_recursive includes/drush.inc Unset the named key anywhere in the provided data structure.
drush_dispatch includes/drush.inc Dispatch a given set of commands. Modules can add commands by implementing hook_drush_command().
drush_include includes/drush.inc Include a file, selecting a version specific file if available.
drush_get_engines includes/drush.inc Return a structured array of engines of a specific type from commandfiles implementing hook_drush_engine_$type.
drush_include_engine includes/drush.inc Include the engine code for a specific named engine of a certain type.
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_cache_clear_all includes/drush.inc
drush_drupal_major_version includes/drush.inc Returns the Drupal major version number (5, 6, 7 ...)
_drush_replace_query_placeholders includes/drush.inc Replace named placeholders in a WHERE snippet.
drush_db_select includes/drush.inc A db_select() that works for any version of Drupal.
drush_db_delete includes/drush.inc A db_delete() that works for any version of Drupal.
drush_db_result includes/drush.inc A db_result() that works consistently for any version of Drupal.
drush_db_fetch_object includes/drush.inc A db_fetch_object() that works for any version of Drupal.
drush_save_data_to_temp_file includes/drush.inc Save a string to a temporary file. Does not depend on Drupal's API. The temporary file will be automatically deleted when drush exits.
drush_tempnam includes/drush.inc Creates a temporary file, and registers it so that it will be deleted when drush exits. Whenever possible, drush_save_data_to_temp_file() should be used instead of this function.
drush_register_file_for_deletion includes/drush.inc Any file passed in to this function will be deleted when drush exits.
_drush_delete_registered_files includes/drush.inc Delete all of the registered temporary files.
drush_delete_dir includes/drush.inc Deletes the provided file or folder and everything inside it.
drush_move_dir includes/drush.inc Move $src to $dest. If the php 'rename' function doesn't work, then we'll try rsync.
drush_op includes/drush.inc Calls a given function, passing through all arguments unchanged.
dt includes/drush.inc Rudimentary replacement for Drupal API t() function.
drush_get_option_help includes/drush.inc Get the available options for Drush for use by help page.
drush_show_help includes/drush.inc Prints out help for a given command.
drush_shell_exec includes/drush.inc Executes a shell command. Output is only printed if in verbose mode. Output is stored and can be retrieved using drush_shell_exec_output(). If in simulation mode, no action is taken.
_drush_shell_exec_output_set includes/drush.inc Stores output for the most recent shell command. This should only be run from drush_shell_exec().
drush_shell_exec_output includes/drush.inc Returns the output of the most recent shell command as an array of lines.
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_print includes/drush.inc Prints a message with optional indentation. In general, drush_log($message, 'ok') is often a better choice than this function. That gets your confirmation message (for example) into the logs for this drush request. Consider that drush…
drush_print_pipe includes/drush.inc Stores a message which is printed during drush_shutdown() if in compact mode.
_drush_bootstrap_phases includes/environment.inc Helper function listing phases.
drush_bootstrap includes/environment.inc Bootstrap Drush to the desired phase.
drush_bootstrap_validate includes/environment.inc Validate whether a bootstrap phases can be reached.

Pages