Functions

Contains filters are case sensitive
Namesort descending Location Description
drush_get_projects commands/pm/pm.drush.inc Obtain an array of installed projects off the extensions available.
drush_get_special_keys includes/sitealias.inc Helper function to obtain the keys' names that need special handling in certain cases.
drush_get_tar_executable includes/environment.inc Return tar executable name specific for the current OS
drush_get_themes commands/core/drupal/environment_6.inc Get complete information for all available themes.
drush_get_themes commands/core/drupal/environment.inc Get complete information for all available themes.
drush_get_themes commands/core/drupal/environment_7.inc Get complete information for all available themes.
drush_get_topics commands/core/topic.drush.inc Retrieve all defined topics
drush_get_username includes/environment.inc Return the name of the user running drush.
drush_get_user_selected_engine includes/engines.inc Obtains the engine to use.
drush_global_options_command commands/core/help.drush.inc Build a fake command for the purposes of showing examples and options.
drush_handle_command_output includes/command.inc Convert the structured output array provided from the Drush command into formatted output. Output is only printed for commands that define 'default-format' &/or 'default-pipe-format'; all other commands are expected to do…
drush_has_bash includes/environment.inc Checks if the operating system has bash.
drush_has_boostrapped includes/bootstrap.inc Determine whether a given bootstrap phase has been completed
drush_help_categorize commands/core/help.drush.inc Organize commands into categories
drush_help_html commands/core/help.drush.inc Return an HTML page documenting all available commands and global options.
drush_help_html_command_list commands/core/help.drush.inc
drush_help_html_global_options commands/core/help.drush.inc
drush_help_html_header commands/core/help.drush.inc Return an HTML page header that includes all global options.
drush_help_listing_print commands/core/help.drush.inc Print CLI table or HTML table listing all commands.
drush_help_section_default_formatter commands/core/help.drush.inc The default section formatter. Replaces '[command]' with the command name.
drush_help_section_formatter_options commands/core/help.drush.inc The options section formatter. Adds a "--" in front of each item label. Also handles short-form and example-value components in the help attributes.
drush_help_visible commands/core/help.drush.inc
drush_hide_empty_fields includes/output.inc Hide any fields that are empty
drush_hide_output_fields commands/core/outputformat.drush.inc Specify that certain fields should not appear in the resulting output.
drush_hook_COMMAND docs/drush.api.php Implementation of the actual drush command.
drush_hook_COMMAND_pre_validate docs/drush.api.php Run before a specific command validates.
drush_hook_COMMAND_validate docs/drush.api.php Run before a specific command executes.
drush_hook_post_COMMAND docs/drush.api.php Run after a specific command executes. Logging an error stops command execution.
drush_hook_pre_COMMAND docs/drush.api.php Run before a specific command executes. Logging an error stops command execution.
drush_hook_pre_pm_enable docs/drush.api.php Automatically download project dependencies at pm-enable time. Use a pre-pm_enable hook to download before your module is enabled, or a post-pm_enable hook (drush_hook_post_pm_enable) to run after your module is enabled.
drush_html_to_text includes/output.inc Convert html to readable text. Compatible API to drupal_html_to_text, but less functional. Caller might prefer to call drupal_html_to_text if there is a bootstrapped Drupal site available.
drush_hyphenate_options includes/complete.inc Simple helper function to ensure options are properly hyphenated before we return them to the user (we match against the non-hyphenated versions internally).
drush_image_flush commands/core/image.drush.inc
drush_image_flush_all commands/core/image.drush.inc
drush_include includes/drush.inc Include a file, selecting a version specific file if available.
drush_include_engine includes/engines.inc Include the engine code for a specific named engine of a certain type.
drush_invoke includes/command.inc Invokes a Drush API call, including all hooks.
drush_invoke_process includes/command.inc Invoke a command in a new process, targeting the site specified by the provided site alias record.
drush_is_absolute_path includes/filesystem.inc Determines whether the provided path is absolute or not on the specified O.S. -- starts with "/" on *nix, or starts with "[A-Z]:\" or "[A-Z]:/" on Windows.
drush_is_command includes/command.inc
drush_is_cygwin includes/environment.inc Check if the operating system is Winodws running some variant of cygwin -- either Cygwin or the MSYSGIT shell. If you care which is which, test mingw first.
drush_is_local_host includes/environment.inc Make a determination whether or not the given host is local or not.
drush_is_mingw includes/environment.inc
drush_is_osx includes/environment.inc Check if the operating system is OS X. This will return TRUE for Mac OS X (Darwin).
drush_is_windows includes/environment.inc Check if the operating system is Windows. This will return TRUE under DOS, Powershell Cygwin and MSYSGIT shells, so test for the Windows variant FIRST if you care.
drush_json_decode includes/output.inc Converts an HTML-safe JSON string into its PHP equivalent.
drush_json_encode includes/output.inc Converts a PHP variable into its Javascript equivalent.
drush_key_value_to_array_table includes/output.inc Convert an associative array of key : value pairs into a table suitable for processing by drush_print_table.
drush_lib_fetch includes/drush.inc Download and extract a tarball to the lib directory.
drush_load_command_engine includes/engines.inc Selects and loads an engine implementing the given type.

Pages