Functions

Contains filters are case sensitive
Name Locationsort ascending Description
_convert_csv_to_array includes/drush.inc Convert a csv string, or an array of items which may contain csv strings, into an array of items.
drush_flatten_array includes/drush.inc Convert a nested array into a flat array. Thows away the array keys, returning only the values.
drush_get_global_options includes/drush.inc Get the available global options. Used by help command. Command files may modify this list using hook_drush_help_alter().
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_is_drush_shebang_line includes/drush.inc Check to see if the provided line is a "#!/usr/bin/env drush" "shebang" script line.
_drush_is_drush_shebang_script includes/drush.inc Check to see if the provided script file is a "#!/usr/bin/env drush" "shebang" script line.
drush_confirm includes/drush.inc Asks the user a basic yes/no question.
drush_choice includes/drush.inc Ask the user to select an item from a list. From a provided associative array, drush_choice will display all of the questions, numbered from 1 to N, and return the item the user selected. "0" is always cancel; entering a blank line is also…
drush_choice_multiple includes/drush.inc Ask the user to select multiple items from a list. This is a wrapper around drush_choice, that repeats the selection process, allowing users to toggle a number of items in a list. The number of values that can be constrained by both min and max: the…
drush_prompt includes/drush.inc Prompt the user for input
drush_op includes/drush.inc Calls a given function, passing through all arguments unchanged.
drush_call_user_func_array includes/drush.inc Mimic cufa but still call function directly. See http://drupal.org/node/329012#comment-1260752
drush_download_file includes/drush.inc Download a file using wget, curl or file_get_contents, or via download cache.
drush_download_file_name includes/drush.inc Helper function to determine name of cached file.
_drush_is_url includes/drush.inc Check whether the given path is just a url or a local path
_drush_download_file includes/drush.inc Download a file using wget, curl or file_get_contents. Does not use download cache.
drush_mime_content_type includes/drush.inc Determines the MIME content type of the specified file.
drush_attempt_mime_content_type includes/drush.inc Works like drush_mime_content_type, but does not set an error if the type is unknown.
drush_file_is_tarball includes/drush.inc Check whether a file is a supported tarball.
drush_tarball_extract includes/drush.inc Extract a tarball.
_drush_should_remove_command_arg includes/drush.inc Determine whether or not an argument should be removed from the DRUSH_COMMAND_ARGS context. This method is used when a Drush command has set the 'strict-option-handling' flag indicating that it will pass through all commandline arguments…
drush_do_command_redispatch includes/drush.inc Redispatch the specified command using the same options that were passed to this invocation of drush.
drush_log includes/drush.inc Add a log message to the log history.
_drush_create_default_logger includes/drush.inc Future: add some sort of dependency injection to Drush.
_drush_log includes/drush.inc Call the default logger, or the user's log callback, as appropriate.
drush_log_has_errors includes/drush.inc
drush_backend_packet_log includes/drush.inc Backend command callback. 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 Display the pipe output for the current request.
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
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_clear_error includes/drush.inc Clear error context.
drush_user_abort includes/drush.inc Exit due to user declining a confirmation prompt.
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_version_control_reserved_files includes/drush.inc Return a list of VCSs reserved files and directories.
drush_generate_password includes/drush.inc Generate a random alphanumeric password. Copied from user.module.
drush_map_assoc includes/drush.inc Form an associative array from a linear array.
drush_complete_cache_clear includes/drush.inc Clears completion caches.
drush_value_format includes/drush.inc
drush_drupal_load_autoloader includes/drupal.inc Loads the Drupal autoloader and returns the instance.
drush_drupal_version includes/drupal.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.

Pages